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
Richard KortsAsked:
Who is Participating?
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 HarteThaumaturgeCommented:
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/
0
Peos JohnPHPCommented:
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.
0
Richard KortsAuthor 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?
0
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.
0

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 KortsAuthor Commented:
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.
0
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
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.