Details
Assignee
Michael OffnerMichael OffnerReporter
greg hinderlitergreg hinderliterPriority
MajorNew 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
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
greg hinderliter
greg hinderliterPriority
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
Affects versions
Created 31 May 2017 at 22:38
Updated 27 August 2021 at 11:48
Lucee 5.2.1.9 (not 5.2.1.5)
The following test illustrates the problem as simply as possible. Attempting to use css to position a div absolutely in which the css class was assigned within a cfsavecontent tag outside of the cfdocument tag will cause the image to not render at all within the cfdocument.
<cfset filename = "/var/site/logo.png"> <cfsavecontent variable="saveddiv"> <div class="saveddivclass"> <img src="file://#label#"> </div> </cfsavecontent> <cfdocument format="PDF" filename="output.pdf" fontEmbed="yes" pageType="legal" marginBottom = ".2" marginLeft = ".2" marginRight = ".2" localurl="yes" > <style> .absoluteClass{ position:absolute; top:0px; left:0px; } .saveddivclass{ position:absolute; top:20px; left:20px; } </style> <cfoutput> <div class="absoluteClass"> <img src="file://#label#"> </div> #saveddiv# </cfoutput> </cfdocument>