tracker issue : CF-3584640

select a category, or use search below
(searches all categories and all time range)
Title:

jPedal - convert PDF to image - White becomes transparent

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Chris Polka / Chris Polka (bprop)

Created: 06/25/2013

Components: Document Management, PDF manipulation

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / 286719

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2

Vote Count: 0

Problem Description:  The bespoke version of jPedal distributed with ColdFusion makes white (#FFFFFF) pixels in images in PDF documents render as transparent.  When the PDF has layers of images, white areas incorrectly show the layer(s) underneath because they are transparent.

Steps to Reproduce:
Use a PDF containing layered images.  Call the org.jpedal.PdfDecoder method getPageAsImage().  The resulting image will have transparency in incorrect places. (sample PDF file included in attachments).  jPedal confirms this is the custom jPedal version released to Adobe and I must engage Adobe to support.

Actual Result:
White areas in any images are rendered as transparent.

Expected Result:
White areas should be rendered as white.
Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3584640

External Customer Info:
External Company:  
External Customer Name: bprop
External Customer Email:  
External Test Config: My Hardware and Environment details:  CF10, Windows 2008 server

Attachments:

  1. June 25, 2013 00:00:00: 1_simple.pdf
  2. June 26, 2013 00:00:00: 2_simple_page1.png

Comments:

Addendum/correction: the transparency occurs on the getPageAsHiRes() method of org.jpedal.PdfDecoder.
Comment by External U.
15137 | June 25, 2013 12:14:13 PM GMT
I have attached the output .png file generated. In this case, I directly used <cfpdf> with action of "thumbnail" to convert the PDF to the image. As a note, this happens with the jPedal released with the CF10 hotfix as well. It did not occur with the jPedal shipped with CF9.
Comment by External U.
15138 | June 25, 2013 12:29:29 PM GMT
Bug verified . (Comment added from ex-user id:vnigam)
Comment by Adobe D.
15139 | June 26, 2013 01:47:27 AM GMT
Using format="png" ,after conversion we cannot immediately view the file <cfset ab=ExpandPath('.')&"/destination4" /> <cfpdf action="thumbnail" source="simple.pdf" destination="#ab#" format="png"/> <cfoutput>#now()#</cfoutput> Thistest case will output the date. But going to access the png in destination4 will give an error that the file is being used.Try to delete it,you will get an error message that coldfusion.exe is using the file (Comment added from ex-user id:vnigam)
Comment by Adobe D.
15140 | December 04, 2013 02:14:06 AM GMT
I ran same test case and was able to view images. I could not find the original issue in them. If you still face issue regarding viewing files, log it as separate bug and lets not mix it with this one
Comment by Uday O.
15141 | December 04, 2013 04:37:44 AM GMT
Your note has nothing to do with the original bug. The post by Vinay Nigam makes absolutely no sense in context of the original problem. Do not close this bug!
Comment by External U.
15142 | June 09, 2014 09:02:47 AM GMT