Title:
[ANeff] Bug for: cfpdf read|merge=>write throws PDFInvalidDocumentVariableException unless "read"+LiveCycle
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/08/2015
Components: Document Management
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final / 12.0
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
cfpdf action="read" or "action="merge" followed by action="write" throws PDFInvalidDocumentVariableException unless a single PDF was read and it contained a LiveCycle form
(the following makes me wonder what's going on under the PDF hood)
Repro:
1) Download attached PDFWithAcrobatForm.pdf & PDFWithLiveCycleForm.pdf
2) Run each of the following 5 code blocks
This fails ("read" + Acrobat):
<cfpdf action="read" source="#expandPath('./PDFWithAcrobatForm.pdf')#" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./PDFWithAcrobatFormFlattened.pdf')#" overwrite="true" flatten="true">
Actual result: PDFInvalidDocumentVariableException "An error occurred while reading source for the cfpdf tag. Error: Variables written as a file by specifying destination in a tag cannot be used again."
Expected result: PDFWithAcrobatFormFlattened.pdf created
This fails ("merge" + LiveCycle):
<cfpdf action="merge" source="#expandPath('./PDFWithLiveCycleForm.pdf')#" pages="*" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./PDFWithLiveCycleFormMergedFlattened.pdf')#" overwrite="true" flatten="true">
Actual result: PDFInvalidDocumentVariableException "An error occurred while reading source for the cfpdf tag. Error: Variables written as a file by specifying destination in a tag cannot be used again."
Expected result: PDFWithLiveCycleFormMergedFlattened.pdf created
This fails ("merge" + Acrobat):
<cfpdf action="merge" source="#expandPath('./PDFWithAcrobatForm.pdf')#" pages="*" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./PDFWithAcrobatFormMergedFlattened.pdf')#" overwrite="true" flatten="true">
Actual result: PDFInvalidDocumentVariableException "An error occurred while reading source for the cfpdf tag. Error: Variables written as a file by specifying destination in a tag cannot be used again."
Expected result: PDFWithAcrobatFormMergedFlattened.pdf created
This fails ("merge" + LiveCycle + Acrobat)
<cfpdf action="merge" directory="#expandPath('./')#" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./PDFFlattened.pdf')#" overwrite="true" flatten="true">
Actual result: PDFInvalidDocumentVariableException "An error occurred while reading source for the cfpdf tag. Error: Variables written as a file by specifying destination in a tag cannot be used again."
Expected result: PDFFlattened.pdf created
This works ("read" + LiveCycle):
<cfpdf action="read" source="#expandPath('./PDFWithLiveCycleForm.pdf')#" name="myPDF">
<cfpdf action="write" source="myPDF" destination="#expandPath('./PDFWithLiveCycleFormFlattened.pdf')#" overwrite="true" flatten="true">
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4051144
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_PDFWithAcrobatForm.pdf
- September 08, 2015 00:00:00: 2_PDFWithLiveCycleForm.pdf
Comments: