How to keep word font when converting word to PDF

Hi :
How to keep word font when converting word to PDF ?
The attachment are as follows :
image.png (43.4 KB)
image.png (82.4 KB)
1.pdf (130.9 KB)1.docx (41.6 KB)

@Hayder.lai It looks like some fonts used in your original document are not available in the environment where document conversion is performed and are substituted. This is causes the difference.
On my side the result of conversion perfectly matches the MS Word result. Could you please try implementing IWarningCallback as shown in the code example and check what fonts are substituted on your side? Then you can try installing the missed fonts and check the conversion again.

Hi alexey.noskov
image.png
What version of jar do you use?
On my side , there are two situations for the conversion results: normal display using image.pngand abnormal display using the latest version, as shown in the above figure。
image.png

Your implementation code?

@Hayder.lai I have used the latest 22.3 version of Aspose.Words for Java and the following simple code for conversion:

Document doc = new Document("C:\\Temp\\in.docx");
doc.save("C:\\Temp\\out.pdf");

Attached are the MS Word and Aspose.Words results generated on my side: ms.pdf (166.2 KB)
aw.pdf (84.4 KB)