We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Difference between Word and PDF export

Hello, I found case when the same document saved to PDF and Word give different results. It looks like main cause of problem is that Word renders some characters in different height then it should be. To reproduce my case it is enough to use below snippet:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
for (int i = 0; i < 45; i++) {
    builder.writeln("\u2610");
}

doc.save("a.docx");
doc.save("a.pdf");

As result we receive one page in pdf and 2 pages in word.
Is this something which could be fixed or maybe configured?

@ANDREA.FARRIS The issue is caused by the font fallback which appears because the glyph for U+2610 character is not present in the default “Times New Roman” font. I have logged it as WORDSNET-24780 in our defect tracking system. We will keep you informed and let you know once it is resolved. As a workaround you could try to explicitly specify the font containing the problematic character (like “Segoe UI Symbol” or “Segoe UI Emoji”).