Is there a specific input format for the file for using pdftk to fill form fields (via PHP).
The input PDF I have is a Acrobat 9 created form.
I've tried "pdftk in.pdf output out.pdf" and tried combinations of the flatten and drop_xfa options.
Everytime I get the following error : "FilterFlateDecode: invalid stream data"
Input text is plain text, and the form fields in the PDF are also text.
I'm aware I can save the PDF as an optimised PDF, but there's far too may options to be trying trial and error!
This is the -info output (I used cpdf for this) on the PDF file I wish to use:
Encryption: Not encrypted
Permissions:
Linearized: false
Version: 1.7
Pages: 1
Title:
Author:
Subject:
Keywords:
Creator: Adobe InDesign CS6 (Macintosh)
Producer: Adobe PDF Library 10.0.1
Created: D:20140219113433Z
Modified: D:20140304104401Z
Paddy