Welcome Guest Search | Active Topics | Sign In | Register

PDF Generation fails when GenerateTags=true Options
Phil
Posted: Friday, February 6, 2026 2:31:02 AM
Rank: Advanced Member
Groups: Member

Joined: 11/8/2017
Posts: 82
Hello, we are running EO-PDF v25.2.36 against our reports with HtmlToPdfOptions.GenerateTags=true - we get a successfully generated (tagged) PDF. When we upgrade to EO-PDF v26.0.34 with HtmlToPdfOptions.GenerateTags=true we get a failure in the PDF generation for most of our reports with the following exception

Code: C#
System.NullReferenceException: Object reference not set to an instance of an object.
   at EO.Internal.prtr.eykq.plej(List`1 ss, List`1 st)
   at EO.Internal.prtr.eykq.plej(List`1 ss, List`1 st)
   at EO.Internal.prtr.eykq.plej(List`1 ss, List`1 st)
   at EO.Internal.prtr.vnkw(psdz se, eykq sf, List`1 sg, Int32 sh)
   at EO.Internal.prtr.vnkv(psdm sc, eykq sd)
   at EO.Pdf.PdfDocument.rtog()
   at EO.Pdf.PdfDocument.Save(Stream stream)
   at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options)

I have emailed a sample project to illustrate

Also, for reports that I am able to generate using EO-PDF v26.0.34 (with HtmlToPdfOptions.GenerateTags=true), when I navigate the PDF via JAWS (screen reader - https://support.freedomscientific.com/Downloads/JAWS), I get behavior that is unexpected - for example when I navigate tables within the PDF (in "table" mode), I am not able to navigate to certain parts of the table (using Ctrl-Alt-ArrowKey) - eg. those cells in the last row with a role="gridcell". Note that I don't have this issue using EO-PDF v25.2.36. My table looks something like

Code: HTML/ASPX
<table>
<thead>
<tr>
<th role="none">
<div role="columnheader">header1</div>
<div role="columnheader">header2</div>
<div role="columnheader">header3</div>
<div role="columnheader">header4</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td role="none">
<div role="gridcell">cell1a</div>
<div role="gridcell">cell1b</div>
<div role="gridcell">cell1c</div>
<div role="gridcell">cell1d</div>
</td>
</tr>
<tr>
<td role="none">
<div role="gridcell">cell2a</div>
<div role="gridcell">cell2b</div>
<div role="gridcell">cell2c</div>
<div role="gridcell">cell2d</div>
</td>
</tr>
</tbody>
</table>

Has something changed within these releases (with regards to Accessibility) ?

Kind regards
Phil


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.