Hi, For last 2 nights, I'm searching for a working solution to this problem. I have a PDF Form template, a FDF file that contains the form data. I need to merge them to generate a data-populated PDF file. I need to do this using PHP. I tried PDFTK, which never worked for me. I'm using Acrobat Reader 9. And using PHP exec function, when I try to fill the form, it populates the form with some ASCII text. Never worked. May be, I'm generating the FDF wrongly. So, I need a complete working solution. I've seen another one Adobe FDF Toolkit. But I didn't get PHP codes to convert FDF into PDF using this toolkit. Can you give me PHP codes for Adobe FDF toolkit? I'm attaching one of my PDF forms and a dynamically generated FDF (from database data) file. You can use these 2 files to check whether your solution works or not. Even I can PAY UPTO $10 if your solution works. IT's URGENT!!! File Link: http://www.mediafire.com/?2mfz4e5gmfj (Archive contains both FDF and PDF)
Will this help you? http://stackoverflow.com/questions/1389964/merge-fdf-data-into-a-pdf-file-using-php Really i didn't get your idea Sorry!
I tried PDFTK. But it didn't worked for my forms. My FDFs are getting distorted while converted to PDF using PDFTK. I can PAY INSTANTLY VIA PAYPAL if someone gives some working solution. I need to merge an FDF with it's PDF form template to save a populated PDF file (where form fields are no more blank and no reference template is required to open the form, a standalone PDF). It's quite straightforward to, who knows it.
And one more thing, it must be some PHP code and I should be able execute the procedure in bulk, say 100 FDFs will get converted to corresponding PDF while iterating through a loop of FDF file names (and these names are used as input parameters in turn).
I would like a similar thing where a user chooses a pdf form from a list, fills out the data and then clikcks on submit and the fdf file with the data entered is then returned to me AS AN FDF FILE