Hi all,
I'm trying to get a system set up that is similar to what many have posted here, but I'm running into a problem. Here's the general workflow I want to occur:
] 1) Create a fillable PDF form in Adobe LiveCycle Designer, giving some fields specific names which we want to automatically fill in for the user later. Save the PDF to a certain place on my server.
] 2) A user logs into a website on my server and:
] 2a) A script running on the webserver looks at the user's credentials and grabs relevant information from a database that we'll be sticking into the PDF
] 2b) We generate an FDF on the fly containing the user's information (using
http://www.pdfhacks.com/forge_fdf/)
] 2c) We run PDFTK with the fill_form parameter on the PDF, specifying the FDF we just made
] 2d) We serve the pre-poulated (*BUT STILL FILLABLE*) PDF form to the user
] 3) The user fills out any remaining fields (and potentially modifies the pre-populated data we gave them) and prints out the PDF or saves it locally (I'm not worried about electronic submission right now).
Thanks to Andrew Heiss' excellent tutorial (
http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL), and the PDFTK site (
http://www.pdfhacks.com/pdftk/), I got *most* of this working already. However, using the "flatten" parameter with pdftk produces a PDF which is *not* fillable (the form fields are populated fine, but they're greyed out and can't be edited).
Several sites have mentioned that removing the "flatten" parameter will leave the PDF fillable, but when I run PDFTK without "flatten", it spits the original PDF back at me, without populating any of the fields (but PDFTK *doesn't* generate any errors).
I've tried this on several different clients with different versions of PDF reader, but the result is always the same: the "flattened" PDF is always unfillable, and the "unflattened" PDF is always not pre-populated.
Has anyone else experienced this kind of problem? Am I doing something WAY wrong?
I'm frustratingly close to getting this working... Any ideas, workarounds, or other avenues I should be exploring would be greatly appreciated.
Thanks!
- Ryan