Rank: Newbie Groups: Member
Joined: 9/1/2014 Posts: 6
|
Hi,
I have a weird case where the following exception is thrown:
EO.Pdf.HtmlToPdf.ConvertUrl("d:\\test.html", new PdfDocument(), new HtmlToPdfOptions());
EO.Pdf.HtmlToPdfException: Conversion failed. Non-negative number required. Parameter name: count ---> System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count at System.IO.BinaryReader.ReadBytes(Int32 count) at EO.Pdf.Internal.ac2.a(BinaryReader A_0, n7& A_1, Int32& A_2, Int32 A_3) at EO.Pdf.Internal.ac2.a(BinaryReader A_0, Size A_1, IntPtr A_2, Int32 A_3) at EO.Pdf.Internal.ac2..ctor(BinaryReader A_0, Size A_1, Int32 A_2) at EO.Pdf.Internal.fz..ctor(BinaryReader A_0) at EO.Pdf.Internal.ato.a(BinaryReader A_0, Single A_1, Single A_2, Single A_3, Single& A_4, Double A_5, Double A_6) at EO.Pdf.Internal.y1.a(String A_0, Single& A_1) at EO.Pdf.Internal.y1.d() --- End of inner exception stack trace --- at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Pdf.Internal.y1.d() at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options)
The html file is only 120KB, and every opening tag has a closing tag. I prepared a solution which you can just run and reconstruct the problem, if you want me to send it to you let me know.
Any idea what the problem could be?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Please update to the latest build and see if that corrects the problem. This appears to be a bug that has already been fixed. If the latest build still does not fix the problem, please try to isolate the problem into a small test project and send the test project to us. See here for more details on submitting test project: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|