Title:
CFDocument generated in a loop does not apply background color style correctly
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Anthony Morse / Anthony Morse ()
Created: 10/13/2017
Components: Document Management, PDF generation
Versions: 2016,11.0,2018
Failure Type: Others
Found In Build/Fixed In Build: 11,0,13,303668 / Main
Priority/Frequency: Normal /
Locale/System: / Win 2012 Server x64
Vote Count: 0
In the following example the background color style is applied in the 1st cfdocument item only.
Subsequent cfdocument items do not apply the style.
<cfoutput>
<cfloop list="1,2,3" index="variables.i">
<cfdocument format="pdf" name="variables.pdf#variables.i#">
<p style="background-color: ##ccc; padding: 10px;">background color test #variables.i#</p>
</cfdocument>
</cfloop>
</cfoutput>
<cfpdf action="merge" name="variables.pdf">
<cfloop list="1,2,3" index="variables.i">
<cfpdfparam source="variables.pdf#variables.i#">
</cfloop>
</cfpdf>
<cfcontent type="application/pdf" variable="#ToBinary(variables.pdf)#">
Attachments:
Comments: