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


#1

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();

pdf.BindHTML(@"C:/test.html");

pdf.Save(@"C:/test.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)



#2

Dear Massimo,

Thank you for considering Aspose.

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


#3

Hi,

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


#4

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