CFDocument renders header/footer in wrong place when they contain <HTML> tag

Description

The following CFDocument code blow renders the headers and footers in the correct place of the page in Adobe ColdFusion. But in Lucee Server, it sticks them up at the top of each page. Removing the <html> tags will fix the layout, but this has become an issue for an application I'm converting that needs to still run on Adobe ColdFusion in the mean time.

<cfdocument format="PDF"> <cfoutput> <cfloop from="1" to="3" index="i"> <cfdocumentsection> <cfdocumentitem type="header"> <html> Header </html> </cfdocumentitem> <html> page content </html> <cfdocumentitem type="footer"> <html> Footer </html> </cfdocumentitem> </cfdocumentsection> </cfloop> </cfoutput> </cfdocument>

Attachments

2
  • 26 Aug 2021, 09:52 pm
  • 26 Aug 2021, 09:52 pm

Activity

Show:

Laurent Delliere 14 September 2021 at 16:40

Finally, it works !

I used another <BODY> tag for the HTML in the FOOTER… Bad !
No matter in ACF 11, but not with Lucee !

Laurent Delliere 14 September 2021 at 16:15

I encounter the same issue.
The footer stay on top of my page !

Ok if i use the “classic” mode, but in that case, images in the page don’t appear !!! weary face
(img tags with url like “https://www….”)

Pothys - MitrahSoft 27 August 2021 at 07:52

I've checked this ticket and confirmed the issue happened on the latest pdf version 1.0.0.97-RC too. While using the pdf modern engine, if the cfdocumentitem header/footer has an Html tag means that content is incorrectly rendered on the body instead of the header/footer area. Seems ACF works fine. Using a classic engine works fine in lucee too.

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 26 August 2021 at 21:51
Updated 14 September 2021 at 16:40

Flag notifications