How to edit pdf files in javascript?

Based on my Google search and stackoverflow, I assume there is no library for this purpose.

Purpose: to save several blank forms on my server. Then pass them to the user who edits the form in the browser using Javascript and sends the form back to the server.

The client wants to reuse parts of the old system (form) in which users will upload an editable PDF file, edit it and send it back to the secretary. Our users are not very computer savvy, and many do not understand that they need to send emails back, assuming that the forms are somehow transmitted when they save their local changes (or something else).

I have not seen the form yet, so I can not assess the viability of the alternative.

+5
source share
2 answers

I don't know any Javascript library, but you can use FDF / XFDF files to do something like this. The idea is that you basically link your PDF file with an external FDF or XFDF file (XML version). When a PDF is uploaded, so is the FDF / XFDF file. You put the form fields in a PDF (which seems to already exist). They fill in this information and (if you add a button to the PDF form), click the button, which basically returns the POST to the server with these fields.

At this point, you can save them in a database, combine them with PDF, etc.

BTW - XFDF/FDF , . , PDF . PDF , , , .

+4

All Articles