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.

Richard KortsBusiness Owner / Chief DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris Harte2015 Top Expert (Most Article Points)Commented:
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)
Peos JohnPHPCommented:
You can use FPDF class file for PDF operations. I had used this sometime ago PDF operations. You can get this  Hope this helps.
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
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?
Ray PaseurCommented:
Maybe look at this problem a bit differently?  Why not deconstruct the existing generic PDF into components that you can reassemble using FPDF or TCPDF.  Then when you need to edit the PDF, you can just take the components parts and substitute the custom parts for the generic parts.  Rerun the PDF creation process, and you'll have your new PDF document.

There may be better ideas, but I think we would need some more specifics to get into the details.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:

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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.