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

Free Support Forum - aspose.com

Difficulty reading css

I am trying to use aspose to convert HTML to PDF files. However, it does not seem to be getting the CSS. I’ve even moved the associated CSS files in to the HTML itself and it still does not read.

I’ve attached the example I’ve been using below along with the associated code. Within the code you’ll see I’ve been using both Aspose.pdf and Aspose.html for the conversions. HTML-Document-External is the pure HTML code taken from the example I’m converting and HTML-Document-Internal is the HTML code with the css within it.

ToPDF.zip (564.8 KB)

I’ve also attached the pdf output. This one was generated using Aspose.PDF. The one created using Aspose.HTML looks worse.

What exactly needs to be done to render the HTML correctly?

@CrivellaWest712

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

We apologize for your inconvenience.