Free Support Forum - aspose.com

HTML to PDF Problem Using Aspose.Pdf.BindHtmlFromUrl()

Hi! I’m trying to convert an HTML page to PDF using BindHTMLFromUrl(). The PDF file is created in the correct directory, but when I open it, all I see is a blank document (with the demo watermark and message) - the HTML page doesn’t get rendered in the PDF file.

1) What am I doing wrong? Here is my code:

Pdf pdf = new Pdf();
pdf.BindHTMLFromUrl(@“http://www.adobe.com/products/acrobat/readermain.html”);
pdf.Save(@“C:/WINDOWS/Temp/Test.pdf”);

I’ve also tried using BindHTML() using a local .html file and get the same result.

2) Does Aspose.Pdf support .aspx files yet?

I’m using the latest demo version of Aspose.Pdf (downloaded today), on WinXP SP2. Thanks!

Dear Mikefield,

Thank you for considering Aspose.

In the current version, only simple HTML is supported. HTML with CSS is not supported and we are now working on this issue.

Aspx2Pdf is under developing too.