Hi
Thank you for your feedback.
I’ve tried the trial version of aspose.Words-20.7 and unfortunately the problem didn’t resolve.
Here is the Pdf produced from Aspose.
document (1).pdf (122.6 KB)
Please ZIP and upload your input Word document and any custom Font file(s) used in this Word document here for testing. We will then investigate the issue on our end and provide you more information.
We have installed the fonts you provided and then used the following ‘Aspose.Words for Java 20.7’ API’s code to produce an output PDF:
- awjava-20.7-harfbuzz.pdf (156.9 KB)
Java Code:
Document doc = new Document("C:\\aspose\\letter_19305.doc");
doc.getLayoutOptions().setTextShaperFactory(com.aspose.words.shaping.harfbuzz.HarfBuzzTextShaperFactory.getInstance());
doc.save("C:\\aspose\\awjava-20.7-harfbuzz.pdf");
Please also check how to enable OpenType features of Aspose.Words for Java?
Do you see the same problem in above output PDF file? If yes, then please create and attach a comparison screenshot which highlights (encircles) the problematic area in this Aspose.Words 20.7 generated PDF (with respect to Word document) along with the following missing font files:
- B Yagut
- B Nazanin
We will then investigate the issue further and provide you more information.