PDF created in Lucee does not show content below <th>

I found a strange issue with the PDF generated in Lucee with <cfdocument> tag. The document spans multiple pages and I used <th> inside <thead> so that the content displays over the table in all the pages. The PDF was successfully created and rendered in the browser. On every page I can see the content in the <th> displayed above the table content. Then, if I try to use the print button in the rendered PDF in the browser (the button in the top right section along with download button) to physically print the document, the first page prints correctly. But subsequent pages just display the content inside the <th> and the rest of the body will be blank. The header and footer displays just fine.
We fixed it by removing the <th> tag and the content got displayed correctly.

I thought I will post this here so that if this is a bug in Lucee (version Lucee 5.1.3.18) it can be fixed by the team.

Which version of the PDF extension are you running? latest is 1.0.0.66

Can you file a bug with a reduced test case?
https://luceeserver.atlassian.net/issues/

1 Like

Hi @Zackster, I’m using the latest version. 1.0.0.66.

Hi @Prasanth_Kumar_S,

I’ve tested with above scenario & Confirmed the issue on latest PDF 1.0.0.66 version . Issue occurs while using <th> inside of the <thead> in cfdocument tag. But it fixed by adding <tr> tag at outside of the <th> like,

<thead>
    <tr>
       <th>Xxxx</th>
       <th>Yyyy</th>
    </tr>
</thead>

Both ACF and Older PDF versions are working as expected without <tr> tag. So please arise ticket for this issue on Jira (https://luceeserver.atlassian.net/).

Thank you @Zackster and @cfmitrah. I will raise a ticket for this issue.