Edit pdf files using PHP
I am trying to edit a PDF file using a php script.
I already have the pdf template with just a string to substitute. This string is <<name>>.
In the php script I am using str_replace () but to substitute the string <<name>> with a variable which contains my name, but it does not change anything on the template.
I do not want to use PDFlib or similar, I prefer stay on the open source side.
I solve these problems with a serverside include to python and pass arguements like -n <<NAME>> and -p <<PATH TO TEMPLATE>> and -r <<RETURN NAME>>
the details are very dependent on which programming languages your know, but this is how I would solve that problem.
It is strange PDFlib at PECL is not really free. I still thot pecl.php.net is like Perl CPAN where you can find free modules to use.
Originally Posted by giovanni.85
Anyway try http://pear.php.net/package/File_PDF File_PDF is another PDF library I think should be free.
Perl CPAN equivalent for PHP
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)