Anyone else using CF to populate PDF formfields an...
# adobe
j
Anyone else using CF to populate PDF formfields and seeing an error in the coldfusion-error.log? It doesn't impact the actual populating of the fields and it still flattens the PDFs, so I don't think it's mission critical, but it just writes a log entry in coldfusion-error.log. I wondered if it was CF2025-specific, so I tested in CF2021 and see a similar but different error. First lines of the log entries start: CF 2025:
java.lang.NullPointerException: Cannot invoke "com.adobe.internal.pdftoolkit.core.cos.CosDictionary.get(com.adobe.internal.pdftoolkit.core.types.ASName)" because "iconObject" is null
and then CF 2021:
java.lang.NullPointerException at com.adobe.internal.pdftoolkit.pdf.interactive.forms.PDFFieldNode.setBase64ImgImpl(PDFFieldNode.java:752)
Thought it might be because they were old PDFs so I created one from scratch (using Acrobat 32-bit) and saw the same issue. Sound familiar? Any work-arounds/solutions or just wince and ignore it?