Status/Resolution/Reason: Closed/Won't Fix/ThirdParty
Reporter/Name(from Bugbase): James Moberg / James Moberg (James Moberg)
Created: 03/17/2014
Components: Document Management, PDF generation
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description: CFDocument duplicates transparent PNG images of equal dimensions
Steps to Reproduce:
<cfloop list="175,200,225" index="thisWidth">
<cfloop from="1" to="3" index="thisImage">
<cfset imgdata = imagenew("", 175, 130, "argb")>
<cfset imagesetdrawingcolor(imgdata, "##000000")>
<cfset objfont = {size = "9", font = "Arial"}>
<cfset imagesetantialiasing(imgdata,"on")>
<cfset imagedrawtext(imgdata, "Test#thisWidth#.#thisImage#", 0, 8, objfont)>
<cfset imagewrite(imgdata, "test#thisWidth#_#thisImage#.png")>
</cfloop>
</cfloop>
<cfdocument format="PDF">
<cfdocumentsection>
<cfoutput>
<cfloop list="175,200,225" index="thisWidth">
<cfloop from="1" to="3" index="thisImage">
<img src="test#thisWidth#_#thisImage#.png" width=#thiswidth# height=130 style="border:1px solid ##000000;">
</cfloop><br>
</cfloop>
</cfoutput>
</cfdocumentsection>
</cfdocument>
Actual Result: Only 3 unique PNG images are displayed when either FlashPaper or PDF is generated.
Expected Result: The 9 unique PNG images saved to the hard drive and rendered in the HTML.
Any Workarounds: To get a transparent PNG to work? None. Don't use CFDocument. Use wkhtmltopdf http://wkhtmltopdf.org/
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3725010
External Customer Info:
External Company:
External Customer Name: Jamo
External Customer Email:
External Test Config: My Hardware and Environment details: I'm using multiple versions of Windows & this bug occurs in ColdFusion 8, 9, 10 & 11. I didn't want to report a "duplicate bug" or report it in versions of ColdFusion that are not longer being actively supported, but please consider fixing this in 9 & 10 as it's what I'll probably be using for the next couple of years.
Attachments:
Comments: