Hi All. We're getting an odd new error when using cfpdfform (action=read) since upgrading to CF2021 (from CF2016). After troubleshooting for several days, I thought I would post it. If anyone has any ideas, we'd love to hear them.
This <cfpdfform> code has worked previously for years with no problem. All we are trying to do is to read a few form fields (e.g. name, date, etc.) from a pdf (so that we can then add data to those fields using the action=populate attribute). The pdf is a certificate (e.g. "You successfully took a course...")
Here is the code in question:
-----------
<cfpdfform action="read"
source="#expandPath("/redacted/redacted/redacted")#/#vDocTemplName#"
result="FormFieldsFromPDFStruct"/>
-----------
Note - we are not trying to get data from a submitted PDF form - we're just trying to get the name of the fields out of the pdf form. The PDF (with form fields) was created in Adobe Acrobat. We've applied a couple of patches from cfsupport - one for cfdocument error and one for cfreport error - these are presumably not in official releases yet, so I'm wondering if that might be a factor.
We'd love to fix this. But, if that proves difficult, we'd be open to any other ideas about how to get the form fields from the form.
Here is the error that we are seeing when we run cfpdfform, action=read:
---------------------------------
coldfusion.tagext.document.DocumentSectionTag not found by pdf [178]
Message coldfusion/tagext/document/DocumentSectionTag
StackTrace java.lang.NoClassDefFoundError: coldfusion/tagext/document/DocumentSectionTag at coldfusion.tagext.pdf.PDFFormTag.doStartTag(PDFFormTag.java:240)...
----------------------------
A similar error has been reported here:
https://community.adobe.com/t5/coldfusion-discussions/cfpdfform-doesn-t-generate-file-java-lang-noclassdeffounderror/td-p/13504066
Thanks!!!
Nick