Title:
CFPDF action="addWatermark" replaces alpha channel on ARGB images with black
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Chris Davais / Chris Davais (Zamboni1138)
Created: 09/04/2013
Components: Document Management, PDF manipulation
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Linux RH Enterprise 6
Vote Count: 1
Related Bugs:
3673381 - Similar to CT Gibson
Problem Description:
I am using CFIMAGE to make an ARGB image with a transparent background. When I use CFPDF action="addWatermark" to add the image to a PDF the alpha channel is being replaced with all black. I can use CFIMAGE action="writeToBrowser" and verify that the image has a transparent background and appears correct before being applied as a watermark.
Steps to Reproduce:
1) Make a PDF using CFDOCUMENT
2) Put HTML into the CFDOCUMENT to make a solid color background (green or blue, etc...)
3) Make an ARGB image, 50x50 pixels using CFIMAGE, with no background color
4) Draw a red line through the middle of the image using ImageSetDrawingColor and ImageDrawLine
5) Use CFPDF action="addWatermark" to add the image to the PDF made is steps 1-2
6) Use CFCONTENT to send final PDF with watermark to the browser
Actual Result:
I get a PDF with the HTML content from step 2 and a non-transparent black box with a red line through the middle. If I skip steps 5-6 above and write the image to the browser I get a transparent box with a red line through the middle.
Expected Result:
A PDF with the HTML content from step 2 with a transparent 50x50 box in the middle of the PDF page with a red line through the middle.
Any Workarounds:
None that I can find. I tried ImageMakeColorTransparent(imgTest, "black"), but that didn't do anything.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3626704
External Customer Info:
External Company:
External Customer Name: Zamboni1138
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion: 10,0,11,285437
Linux: 2.6.32-220.23.1.el6.x86_64
Java/JVM: 1.6.0_29 20.4-b02
Attachments:
Comments: