tracker issue : CF-4142993

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

cfhtmltopdf fails to write if filename contains special characters

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Kailash Bihani)

Created: 04/21/2016

Components: Document Management, PDF Generation (CFHTML2PDF)

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All

Vote Count: 1

Listed in the version 2016.0.02.299200 Issues Fixed doc
cfhtmltopdf fails to write if filename contains special characters

It works in the case of filewrite and cfdocument

Repro case:
<cfscript>
  fileWrite(expandPath("./myfilé1.txt"), "my file");//creates file (good)
  cfdocument(format="pdf", filename=expandPath('./myfilé2.pdf'), overwrite=true) {writeOutput("my file");}//creates file (good)
  cfhtmltopdf(destination=expandPath('./myfilé3.pdf'), overwrite=true) {writeOutput("my file");}//throws coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException (bad)
</cfscript>

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

Watson Bug ID:	4142993

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

The issue was that If the PDFG ServiceManager was local than the destiantion file was written by HTML2PDFConverter whcih was not able to write it if the filename contained special characters. Now the destination file is not passed to HTML2PDFConverter but it written by CF.
Comment by Chinoy G.
3028 | April 21, 2016 03:53:35 AM GMT
+1 - Thanks very much Kailash and Chinoy for filing/fixing this. Just noting the related ticket was CF-4042294.
Vote by External U.
3031 | May 09, 2016 10:49:57 PM GMT
test note
Comment by CFwatson U.
3029 | June 07, 2016 04:17:28 AM GMT
The fix for this bug is available as part of the early-access build for ColdFusion 2016 Update 2.
Comment by CFwatson U.
3030 | June 07, 2016 04:24:07 AM GMT