Welcome Guest Search | Active Topics | Sign In | Register

IndexOutOfRangeException Options
joriswit
Posted: Thursday, December 8, 2011 10:51:23 AM
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)
eo_support
Posted: Thursday, December 8, 2011 11:02:22 AM
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!
eo_support
Posted: Thursday, December 8, 2011 11:48:09 AM
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!
joriswit
Posted: Friday, December 9, 2011 4:54:32 AM
Rank: Newbie
Groups: Member

Joined: 12/1/2011
Posts: 6
Thanks! It works!
eo_support
Posted: Friday, December 9, 2011 9:32:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thank you very much for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.