BindHTML error Length cannot be less than zero. Parameter name: length


Hi there,

We are testing aspose.pdf as other components for a new project. Downloaded the evaluation version, try to run the following code:

Pdf pdf = new Pdf();



get the following error: "Length cannot be less than zero. Parameter name: length" on this instruction --> pdf.BindHTML(@"C:/test.html");

It is a really simple html file with a table.

I run : VS 2003 architect on an Win XP SP2 developer workstation.

Any suggestion ?

Thanks, Massimo (System Architect @ The Common Factor, Amsterdam, The Netherlands)


Dear Massimo,

Thank you for considering Aspose.

Can you please provide the HTML and let us test it?



Here the html file.

Some extra info about our project environment:

- intranet site

- integrated security used

- <identity impersonate="true" userName="webuser" password="password"/>

I hear it from you.

Thanks. Massimo


We have not found the problem when testing your document. Are you using the latest version of Aspose.Pdf?