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

Free Support Forum - aspose.com

Saving docx with embedded font to pdf removes in characters from font

I have a docx document using Lucida Sans Unicode, saved using the “embed fonts in the file” option (only chars in the document).
When I convert this document to PDF on Linux using Apose Words, not all characters show up in the PDF.
On Windows, the resulting PDF is correct, probably because this font is installed in the system.
When I extract the ODTTF font from the docx and de-obfuscate it, I can see it contains the characters used in the document.
When I extract the font from the resulting PDF, some characters are missing.
The result differs between versions of Aspose:
until 19.4 all uppercase are converted ok, lowercase only d and r
from 19.4 all lowercase are converted ok, uppercase only M

Example snippet used for converting:

Document doc = new Document("test.docx");
PdfSaveOptions save_options = new PdfSaveOptions();
doc.save("test.pdf", save_options);

test-documents.zip (246.6 KB)

@RS32465 Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24795. We will keep you posted and let you know once it is resolved or we have more information for you.