Free Support Forum - aspose.com

CONVERT HTML->PDF results in empty page

Hallo,

I want to convert a simple HTML page to pdf and show in the browser.

My VB Code:
Dim pdf As Pdf = New Pdf
pdf.BindHTML("C:/HTML.html")
pdf.Save("test.pdf", SaveType.OpenInBrowser, Response)
Response.End()

my HTML.html page only contains:
Hello World

What is my mistake?

Thanks, Tobi Langer

Thanks for considering Aspose.

In my test, it's fine. Which version of Aspose.Pdf are used?

Please refer to following page for details:

http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.Pdf.BindHTML1.html

I tried Version: 2.7.1.0 and Version: 2.8.3.0
I also tried like in your example.
I always only get a blanc pdf.

I don't understand that.
Thanks for your help.

Sorry, our product only support the html page which contains like this:




hello world!



We will try to make the HTML feature more fault tolerant in the future version.

Thanks for considering Aspose.

We'll give more good messages about exceptions.

Oh yes.... Big Smile [:D]

That was exactly my problem.
Thank you very much.