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

Free Support Forum - aspose.com

Font conversion wrong


Using (aspose-words-21.7) to convert word file that contains Arabic letters with a “STC Forward” font to pdf file, the file has been converted but the font used in the Word file is lost
Please check the attached 2 files which are word file before conversion and pdf file after conversion.
test.docx (12.7 KB)
test.pdf (38.2 KB)

in case of using a word file containing bookmarks it is populated with html content then convert to pdf, the conversion is done successfully but some characters are not affected with the used font as showing in the attachments below
test-html.docx (1.5 MB)
test-html.pdf (59.8 KB)

Thanks in advance

the used font in the word file

STC Forward.7z (50.7 KB)


Please enable open type feature as shown below to get the correct output.

Document doc = new Document(MyDir + "‌input.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(MyDir + "output.pdf");

For more detail, please read the following article.