Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

php pdf editor

Is there a generic class or set of functions that allows programmatic editing of a pdf file using php on a web server?

I will probably need to replace specific text and some images in a generic pdf document based on logon info from a specific user.

Thanks
Avatar of Chris Harte
Chris Harte
Flag of United Kingdom of Great Britain and Northern Ireland image

There is a pdf library in php which uses the pdflib library. (These are for pdf files you generate yourself, not editing a pre existing pdf)

http://php.net/manual/en/book.pdf.php

http://www.pdflib.com/products/pdflib-family/
You can use FPDF class file for PDF operations. I had used this sometime ago PDF operations. You can get this  http://www.fpdf.org/  Hope this helps.
Avatar of Richard Korts

ASKER

I need to be able to edit PRE_EXISTING pdf files.

I have used FPDF for years, to CREATE pdf's. Can it be used to edit existing pdf's?
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ray,

How would I deconstruct the existing pdf?

I found what I think will work. It turns out the pdf's I am starting with are "generic" I will only need to concatenate two pdf's; the one I have & a new one I can construct with FPDF. I can use the "base" pdf as is

The info I have found says there is an FPDI that allows concatenation. I will try that.