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

Free Support Forum - aspose.com

Font issue when generated using Aspose. Font not working in PDF

Hello Support,

We are generating Word documents and Pdfs using Aspose library.
We are using Time New Roman as the font family. Please find the font files attached.
We use the code below to set the font path in Aspose.


The font is Word is a valid 'Times New Roman' font but in PDF the font and the indentation is different.It's not working with font 'Times New Roman'.

Please also find the document and the pdf for 'Arial' font and the document and pdf for 'Times New Roman' font attached.

We have used the code like below to add alignment, indentation such as justification etc to the paragraphs.
We are using Justified indentation.


Please advise.

Your help is very much appreciated.

Many Thanks
Darshna Agrawal

Hi Darshna,

Thanks for your inquiry.

We have tested the scenario using latest version of Aspose.Words for Java 17.4 and have not found the shared issue. Please use Aspose.Words for Java 17.4. We have attached the output document with this post for your kind reference.