|
Rank: Newbie Groups: Member
Joined: 12/1/2011 Posts: 6
|
I am experiencing an exception when I save some PDF documents which I have converted from HTML. I use this code:
Code: C#
PdfDocument pdfDoc = new PdfDocument();
pdfDoc.Standard = PdfStandard.PDF_A;
HtmlToPdf.ConvertUrl("input.html", pdfDoc);
pdfDoc.Save("eopdf.pdf");
And this HTML:
Code: HTML/ASPX
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="145"></td>
<td width="331"></td>
<td width="151" rowspan="6" align="right" valign="top">
</td>
</tr>
<tr>
<td>Huis</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td> </td>
<td>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
This is the error:
Code:
System.IndexOutOfRangeException: Index was outside the bounds of the array. at EO.Pdf.Internal.ee.a.a() at EO.Pdf.Internal.ee.a.a(ee A_0, Random A_1) at EO.Pdf.Internal.ee.b() at EO.Pdf.PdfDocument.b() at EO.Pdf.PdfDocument.Save(String fileName)
Note that when I change the word "Huis" in the HTML to just "H", it works file. I use EO.Pdf.dll version 3.0.92.2 (with the PDF/a fix)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is a bug related to the PDF/a fix. We will fix it and post an update build for you shortly.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that should fix this problem. Please see your private message for the download location.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/1/2011 Posts: 6
|
Thanks! It works!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Thank you very much for confirming the fix!
|
|