Title:
isPDFObject returns varied results depending on whether the PDF was read from a file or generated in memory
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Immanuel Noel)
Created: 08/08/2016
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF 2016 HF 2 /
Priority/Frequency: Normal / Very few users will encounter
Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All
Vote Count: 0
Problem:
isPDFObject returns varied results depending on whether the PDF was read from a file or generated in memory.
The bug was reported in #4104246 comments.
Issue exists on CF 2016 HF 3, CF 11 HF 9, CF 10 HF 20
Method:
<cfdocument name="varPDF" format="pdf">
<cfoutput>This is a PDF</cfoutput>
</cfdocument>
<cfpdf name="filePDF" source="c:\test.pdf" action="read">
<cfoutput>
isPDFObject(varPDF) = #isPDFObject(varPDF)# (Should be Yes)<br>
isPDFObject(filePDF) = #isPDFObject(filePDF)# (Should be Yes)
</cfoutput>
Result:
isPDFObject(varPDF) = NO
isPDFObject(filePDF) = YES
Expected:
isPDFObject(varPDF) = YES
isPDFObject(filePDF) = YES
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4179264
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: