Skip to main content
Participant
Sep 27, 2012 9:10 PM UTC
Question

cfpdfform cannor read PDF

Hi have a pdf with some formfields:

http://www.direct-jobs.ch/abm.pdf

(official form from swiss authorities)

and i want to automatically fill it out with cfpdfform.

However when I try to read it using

 <cfpdfform source="/tmp/abm.pdf" result="resultStruct" action="read"/><cfdump var="#resultStruct#">

I get an CF-Error message

Either datafile XML or data XML contained in the PDF document is invalid.

however reading the form with acrobat reader works perfectly fine.

Any ideas how I can get this to works?

I suppose it has something to do with the version of acrobat the form was generated with, but thats just a guess.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participant
Dec 29, 2017 5:02 PM UTC

Try removing the result and using the xmldata="x" inside the cfpdfform instead.

Translate