If the PDF forms you "print on top of" are forms, you can use FDF (Forms
Data Format) to fill out the form. There are several FDF options. One is
to use Adobe's FDF program thingie. Others are listed in the comments on
this page (http://www.php.net/manual/en/ref.fdf.php). I used one of the
ones listed in the comments with no problems, but it was for a super
simple form. (i.e., your mileage may vary)

Another option is to have the suppliers form to be turned into an image
and placed in the background (via pdf_place_image() if you're using
PDFlib). This works well enough, but could be extremely troublesome for
large forms. It also heavily increases the size of the PDF document.

PDFlib is really powerful, but to edit existing PDF documents, you may
need to use their PDI (Pdf Import Library). That is an added cost module.

Otherwise, you could create a function (or possibly class) to basically
redo the suppliers' form, and then pass over it (at the same time) with
the data you need to put on the form.

Good Luck!

-Dash

The scum also rises.
                -- Dr. Hunter S. Thompson

On Fri, 17 Jan 2003, Brian McGarvie wrote:

> I'm looking to find out if PHP has the ability to do this...
>
> OK I'm looking for a solution that could do the following.
>
> We require to generate PDF files that can then be emailed or printed &
> posted to clients.
>
> I can create PDF Files from scratch using PDFLib.
>
> What we will require to do though is, we presently have paper copies of
> forms from various parties we deal with, our present Access-based system
> simply prints on top of these, I am presently developing in PHP a system to
> replace the Access database, we will want it to create these as PDF files
> (we can get the printed forms in PDF format) based on supplied PDF files...
> for example, generate a PDF for Customer X based on Supplier Z's PDF file.
>
> Any solutions in PHP (open source, free, commercial etc etc.) would be very
> much appreciated, or if we need to look at another Language to perform this
> part of the solution (i.e. ASP).
>
> The solution I'm developing is PHP, running on a Windows 2000 Server as we
> require use of some windows-only software too. So if *cough* ASP is what's
> needed to do the above then so be it :\ - really hope not though!!!
>
> Thanks in advance!
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.438 / Virus Database: 246 - Release Date: 07/01/03
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to