Hi there, is there any scripts out there that you know of that will let me load up a PDF or DOC file and write on top of it? Then save it back out in the same format? Thanks, Matt.
Hi Matt, For both formats procedures will be different. If you have dedicated server and you can install some software that can be used alongwith php, that will help and ease the process; if not then there are 2 ways, but yet it wont be guaranteed to produce exactly the same document. PDF: 1. read PDF file using fpdf ، make changes and save back 2. convert pdf to html on server using wkhtml2pdf, make changes, save back 3. create new small pdf [that has same page size], prepend to required pdf [requires pdfchain or ghostscript be installed on server] All above actions and commands can be issued directly from php. DOC: Basically DOC is not open document format and I assume you are talking about Office 2000/XP format that is not XML. For this you will be needing : 1. either a converter on server 2. reading it [which wont be 100%], making changes, then writing back DOCX: New open format that is XML, you can read and manipulate it using php library called phpoffice. regards