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

Free Support Forum - aspose.com

Aspose.html version 22.2 cannot covert correct ASCII text into PDF file

We use Aspose.html to convert HTML files into PDF files. After upgrading to version 22.5 (from 21.2), we find the converted PDF includes the wrong encoding for ASCII letters.

This is the PDF comes from version 22.5
image-20220607-220018.png (115.2 KB)

This is the PDF comes from version 21.2
image-20220607-220606.png (117.9 KB)

This is comparison of the fonts in 2 PDFs
image-20220607-221233.png (53.0 KB)

This is HTML file
BK2-A1D_Master_HTML.zip (2.4 KB)

After testing on other versions, I find that version 22.2 is the first version to have this problem.

@license-it

Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing. Please also share the output PDF files. We will investigate the issue and provide you more information on it.

Hi @tahir.manzoor,
Thanks for the reply.

Source code of the test application
AsposeTest.zip (3.2 MB)

The PDF file
BK2-A1D_Master_HTML.pdf (53.8 KB)

@license-it

We have logged this problem in our issue tracking system as HTMLNET-3880. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.