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

Free Support Forum - aspose.com

I am trying to Import HTml to Words then convert same word document to Pdfs

I am importing html to msword .doc file and thereafter saving to .pdf file.
Now, in importing , Text in docs are rendered in appropriate fonts but when same document is saved to PDFs, text are rendered with Times New Roman fonts.

These list of files are in zipped attachments.

Testfile.html is test html file.


are two output doc and pdf document.

My concern is that In doc file fonts are rendered properly, but pdf file font is Times New Roman

Note: When I changed “” to , fonts are coming perfectly in PDFs also.

Please, suggest solution or share some code examples to refer to.

Hi there,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for Java 15.6.0 and have not found the shared issue. Please use Aspose.Words for Java 15.6.0 and let us know if you have any more queries.