Re: PDF Templates with PHP

From: Date: Thu, 17 Jun 2004 08:23:00 +0000
Subject: Re: PDF Templates with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188461@lists.php.net to get a copy of this message
"Merlin" <news.groups@web.de> wrote in message news:20040617053130.84305.qmail@pb1.pair.com... > 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

« previous php.general (#188461) next »