Hi All. We're getting an odd new error when using...
# adobe
n
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
n
@nickg: Have you tried clearing the felix-cache? If not, please try it once. Stop CF Server Navigate to cfusion/bin Delete felix-cache folder Start CF Server And try again.
n
@nimitsharma I did try that, but I can try it again. I think I dragged that folder to another location the first time (outside of CF).
@nimitsharma It sounds like you are saying that I don't need to have an empty folder there - i can just delete the whole thing
n
@nickg: Yes, you can delete it. CF will re-create it upon restart.
n
@nimitsharma Thanks for the clarification! I tried again and unfortunately it did not work. This seemingly is a very basic scenario where I cannot get <cfpdfform> to read the fields out of an a pdf created in Adobe Acrobat.