All work
Cfdocument looses bookmarks if more than one section is used.
Fixed
Description
Environment
None
relates to
Pothys - MitrahSoft
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Christian Kuepers
Christian KuepersPriority
Fix versions
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
Created 15 September 2017 at 17:01
Updated 23 May 2024 at 17:47
Resolved 30 March 2022 at 08:32
Activity
Zac Spitzer 23 May 2024 at 17:47
Zac Spitzer
23 May 2024 at 17:47
just ran the action on the repo, same resulthttps://github.com/lucee/extension-pdf/actions/runs/9212535330
Zac Spitzer 23 May 2024 at 09:40
Zac Spitzer
23 May 2024 at 09:40
@Pothys - MitrahSoft any ideas?
Errored testAdditional.LDEV3575
LDEV-1500, cfdocument with orientation and bookmark attribute
variable [BOOKMARKS] doesn't exist
/tests/LDEV3575.cfc:27 branch
/lucee/test/_testRunner.cfc:283 branch
/lucee/test/run-tests.cfm:348 branch
/bootstrap-tests.cfm:108 branch
lucee.runtime.exp.ExpressionException: variable [BOOKMARKS] doesn't exist
at lucee.runtime.type.scope.UndefinedImpl.getCollection(UndefinedImpl.java:434)
at ldev3575_cfc$cf.udfCall(/testAdditional/LDEV3575.cfc:27)
Pothys - MitrahSoft 30 March 2022 at 08:31(edited)
Pothys - MitrahSoft
30 March 2022 at 08:31
(edited)
I've checked this ticket with the latest PDF version 1.1.0.7-SNAPSHOT in lucee version 5.3.9.120-SNAPSHOT. Now the cfdocument works fine with the orientation and bookmark attributes.
Zac Spitzer 29 March 2022 at 23:04
Zac Spitzer
29 March 2022 at 23:04
Pothys - MitrahSoft 5 July 2021 at 15:38
Pothys - MitrahSoft
5 July 2021 at 15:38
I closed the above PR because this issue will solve by the PR of the LDEV-3575. Using the orientation attribute before the bookmark attribute causes this issue.
The workaround is to use orientation as the last attribute in the cfdocument tag.
<cfdocument format="pdf" pagetype="A4" fontEmbed="true" unit="cm" marginbottom="0" marginleft="0" marginright="0" margintop="0" bookmark="true" htmlbookmark="true" orientation="portrait">
When using more than one cfdocumentsection all bookmarks aren´t working anymore.
Very ugly, because customer needs them and we need also more than one section.
<cfdocument format="pdf" pagetype="A4" orientation="portrait" fontEmbed="true" unit="cm" marginbottom="0" marginleft="0" marginright="0" margintop="0" bookmark="true" htmlbookmark="true"> <cfdocumentsection marginbottom="0" marginleft="0" marginright="0" margintop="0"> <html><head></head> <body> <h1>test1</h1> </body> </html> </cfdocumentsection> <cfdocumentsection marginbottom="0" marginleft="0" marginright="0" margintop="0"> <html><head></head> <body> <h1>Test Section 2</h1> </body> </html> <cfdocumentitem type="header"> <cfoutput>cfdocument.totalsectionpagecount :#cfdocument.totalsectionpagecount#</cfoutput> <cfoutput>cfdocument.currentsectionpagenumber :#cfdocument.currentsectionpagenumber#</cfoutput> </cfdocumentitem> <cfdocumentitem type="footer" > <div style="float:right;"> <cfoutput>Seite #cfdocument.currentpagenumber# von #cfdocument.totalpagecount#</cfoutput> </div> </cfdocumentitem> </cfdocumentsection> </cfdocument>