Skip to main content
Participant
September 27, 2012
Question

cfpdfform cannor read PDF

  • September 27, 2012
  • 1 reply
  • 769 views

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 has been closed for replies.

1 reply

Participant
December 29, 2017

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