tracker issue : CF-3802166

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

CFPDF Thumbnail Action need to generate thumbnail with black background

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): / Brian Erickson (Md. Kaif Akbar Quraishi)

Created: 08/07/2014

Components: Document Management, PDF manipulation

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 11 /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Linux Red Hat All,Win All

Vote Count: 0

Problem:
CFPDF Thumbnail Action not able to generate thumbnail with black background.

Below is the sample cfm page used for this bug repro:-
--------------------------------------
<cfscript>
sSrcFileName="C:\ColdFusion11\cfusion\wwwroot\PDFTest\EvolutionPoster040711FINAL24x36.pdf";
sTestDir="C:\ColdFusion11\cfusion\wwwroot\PDFTest\Output\";
sDestinationDir="./Output/";
sSrcCopyFileName=sTestDir & "TestingCopy11.pdf";
oPdfData="";
</cfscript>

<cfpdf
	action="getinfo"
	source="#sSrcFileName#"
	name="oPdfData"/>
<cfdump var="#oPdfData#" />
<cfdump var="#sSrcFileName#" />

<cfdump var="#sSrcCopyFileName#" />
<cfpdf
	action="write"
	source="#sSrcFileName#"
	destination="#sSrcCopyFileName#"
	saveOption="full"
	overwrite="yes"
	version="1.3" 
	/>
<cfpdf
	action="getinfo"
	source="#sSrcCopyFileName#"
	name="oPdfData"/>
<cfdump var="#oPdfData#" />



<cfpdf
	action="thumbnail"
	source="#sSrcCopyFileName#"
	destination="#sDestinationDir#"
	format="png"
	imagePrefix="Test011"
	overwrite="yes"
	resolution="low"
	scale="100"
	transparent="no"
	       
	/>

<cfabort showError="Got Here" />
--------------------------------------------------------

Method:
Put this cfm page in CF webroot.
Put the corresponding PDF file or any PDF with white texts.
Run cfm page.
Generating thumbnail with white background instead of black.

Result:
It is generating thumbnail with white background.

Expected:
It should generate thumbnail with black background.

Workaround:
Needs to be identified.

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

Watson Bug ID:	3802166

External Customer Info:
External Company: infocon-inc.com
External Customer Name: Brian Erickson
External Customer Email: ericksbr@infocon-inc.com


Bug File Paths:
\\mquraish7-win7\Shared3\temp\engg\PdfTest5.cfm
	This is sample cfm page being used to repro this issue

Attachments:

Comments:

For higher resolution images we need to increase jvm's xmx memory as jpedal internally creates objects for each pixel. Increase you memory by atleast 1.2 GB and check the results
Comment by Uday O.
11410 | August 18, 2014 05:52:09 AM GMT
Please do the below settings and tell us if it worked for you. Thanks & Regards, Suchika.
Comment by Suchika S.
11411 | August 18, 2014 06:12:27 AM GMT
Steps provided to avoid the issue.This is not a bug and so closing it.
Comment by Suchika S.
11412 | December 03, 2014 01:46:52 AM GMT