Page 1 of 1

why not open source pdf library

Posted: Tue Dec 23, 2008 10:37 am
by yacahuma
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

Re: why not open source pdf library

Posted: Tue Dec 23, 2008 10:44 am
by Mark Baker

Code: Select all

 
$fields['name']->setValue('john doe');
$FormFiller->fillForms('NewPDF.pdf');
 
What does this actually do?

Re: why not open source pdf library

Posted: Tue Dec 23, 2008 11:18 am
by yacahuma
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.