[PHP] Re: PDF Templates with PHP

2004-06-17 Thread Torsten Roehr
Merlin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 HI there,

 I am wondering if it is possible to generate a pdf page with pdflib based
on a
 existing pdf document. For example using an invoice template and filling
in the
 values with php.

The last time I checked it (1 year ago) you needed the PDI library of PDFLib
to open an existing PDF file and do something with it. Go to the pdflib page
and check if this is still the case.

I simple workaround would be to place placeholders into your template
(e.g.[###filed1###] or something similar) then get the file contents with
get_file_contents() or fopen() and replace the placeholders with their
values with str_replace().

Hope it helps. Regards,
Torsten Roehr


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PDF Templates with PHP

2004-06-17 Thread Matt Matijevich
[snip]
I am wondering if it is possible to generate a pdf page with pdflib
based on a existing pdf document
[/snip]

Look into the pdflib examples that you get when you download pdflib.  I
am pretty sure there is an example invoice template in it.  Also look
into the pdf blocks in pdflib.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php