We use next code (SpireDoc 11.7.0):
- Code: Select all
String html = "<p><span>ONE <strong>TWO</strong> <em><strong>THREE</strong> <u>FOUR</u></em></span></p>";
Document document = new Document();
document.addSection().addParagraph().appendHTML(html);
document.saveToFile("italic.pdf", FileFormat.PDF);
In result file missed space between words THREE and FOUR.
Thanks,
Andrei Chorin