why not open source pdf library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

why not open source pdf library

Post 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
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: why not open source pdf library

Post by Mark Baker »

Code: Select all

 
$fields['name']->setValue('john doe');
$FormFiller->fillForms('NewPDF.pdf');
 
What does this actually do?
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: why not open source pdf library

Post 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.
Post Reply