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
eo_support
Posted: Monday, February 9, 2026 1:33:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,461
Thanks for letting us know. We were not able to download your test project due to permission issues. However we were able to reproduce the null reference exception by constructing our own test cases. We have posted a new build that fixed this issue and will PM you with the download link.

We are not familiar with JAWS and do not have a license for it. The problem maybe related to the NullReferenceException since the data were not correctly generated to begin with. So please try the new build and see if it resolves this issue as well.


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.