Title:
[ANeff] Bug for: <cfpdf flatten="true"..> throws unavoidable PDFWriteFlattenException
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/07/2015
Components: Document Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
<cfpdf flatten="true"..> throws unavoidable PDFWriteFlattenException
Repro:
index.cfm
---------
<cfpdf action="merge" directory="#expandPath('./')#" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./MyPDFMergedAndFlattened.pdf')#" overwrite="true" flatten="true">
1) Download/extract MyZIP1.zip (contains PDFWithAcrobatFormFlattened.pdf & PDFWithNoForm.pdf) to same directory as index.cfm
2) Run index.cfm
3) See
Actual result: coldfusion.pdf.PDFDocOperation$PDFWriteFlattenException "Cannot specify flatten for the WRITE action in the cfpdf tag." "Error: Source doesnot have any form." (BTW, "doesnot" should be "does not")
Expected result: MyPDFMergedAndFlattened.pdf is created
Note: This error is unavoidable b/c:
I) A .zip may contain any type of PDF (having forms or no forms)
II) <cfpdf> does not have a skipPDFWithoutForm="true|false" attribute
4) Download/extract MyZIP2.zip (contains PDFWithAcrobatForm.pdf & PDFWithLiveCycleForm.pdf) to same directory as index.cfm
5) Run index.cfm
6) See MyPDFMergedAndFlattened.pdf was created (good)
To resolve the above issue, ColdFusion should:
a) Have flatten="true" never throw PDFWriteFlattenException
-or-
b) Add a skipPDFWithoutForm="true|false" (or similar) attribute to <cfpdf>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4051033
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
External Test Config: Verified in ColdFusion 11 Update 5 (build 11,0,05,293506).
Attachments:
- September 08, 2015 00:00:00: 1_MyZIP1.zip
- September 08, 2015 00:00:00: 2_MyZIP2.zip
Comments: