Hello,
I have been battling to dynamically fill pdf forms. I was using fdf until for some strange reason. they just dont want to open in my computer anymore. Also fdf have another little problem, you always need a link to the original. Having you program generate a real pdf is just the nicer option.
I found a library from setasign. I will have to buy it . Very simple to use.
$fields['name']->setValue('john doe');
$FormFiller->fillForms('NewPDF.pdf');
Thats it.
My question is, first, is there anything like this for free? if not anyone has some background on pdf, that could explain what are the complexities involve?
Thank you
why not open source pdf library
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: why not open source pdf library
Code: Select all
$fields['name']->setValue('john doe');
$FormFiller->fillForms('NewPDF.pdf');
Re: why not open source pdf library
Sorry,
First you need a pdf. Then using acrobat, you put fields on the pdf. Using the new pdf and the library, you just set the fields, like in the example. The library will assign that value to the field, and at the end it will stream the new pdf to the user.
First you need a pdf. Then using acrobat, you put fields on the pdf. Using the new pdf and the library, you just set the fields, like in the example. The library will assign that value to the field, and at the end it will stream the new pdf to the user.