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

# 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

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

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