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

Free Support Forum - aspose.com

Issue: While converting HTML to PDF ( CSS classes are not reflected/refrered)

Hello Aspose Support Team,
We have .aspx page, in that it refer the 6 .css files.
We are trying to convert HTML (Inner-HTML string of .aspx page) to PDF.

But the PDF which are generated are not taking the CSS reference.

I have tried various path for CSS like,




but none of the worked.

We are using ASPOSE PDF version as:

Please advice. Thank you.

Hi Ajay,

Thanks for your inquiry. Please note you are using quite old version of Aspose.Pdf for .NET, It is recommended to use latest version of Aspose.Pdf for .NET as we maintain a single code base. All the fixes and new features/enhancements are implemented in latest version of DLL. So we are unable to provide any hotfix for older versions.

In reference to HTML to PDF conversion issue. please use new DOM approach for HTML to PDF conversion it will help you to accomplish the task.

Please feel free to contact us for any further assistance.

Best Regards,