0

Ok, so I need to integrate a pdf editor to a cms site in such a way that if someone edits and saves the pdf it can be accessed via the admin of the site. Someone suggested mPDF but as I can see it converts HTML to pdf. In my case, the HTML form the user fills is already created,generated and saved to the back-end but there are some additional fields the admin needs to fill up and resave it there itself internally. How can that be done. Can anyone please help me out with the same? Will be highly obliged.

Dev
  • 1
  • 3
  • I'm afraid requests for libraries and such aren't on topic on Stack Overflow. I can tell you from experience that this isn't trivial to do, though. – Pekka Apr 20 '16 at 13:02
  • Where do I need to post to get an answer? – Dev Apr 20 '16 at 13:08
  • I don't know. I don't think a right-out "PDF editor" for the web browser exists at all, though. [This question](http://stackoverflow.com/questions/4416667/php-pdf-template-library-with-pdf-output) (asked many years ago when library requests were still on topic) might help: it's about filling text into specific locations inside a PDF. I never got it working, though, and ended up replacing the values in an OpenOffice document (which is easier) – Pekka Apr 20 '16 at 13:12
  • Also [this](http://stackoverflow.com/questions/77873/filling-pdf-forms-with-php) – Pekka Apr 20 '16 at 13:13
  • Ok..thanks for your help. – Dev Apr 20 '16 at 13:14
  • http://www.phpdocx.com/ was suggested but is it only for docs or does it support pdf's as well? – Dev Apr 20 '16 at 13:36

1 Answers1

0

It would be easier to regenerate PDF file with new data because PDF is not good for editing online and offline.

If you are looking to add text content to existing document then consider to use FPDI open source extension for FPDF.

Eugene
  • 2,820
  • 19
  • 24