2

I have a page with embedded PDF.

<object data="/files/documents/somepdf.pdf" type="application/pdf"></object>

The embedded PDF has a form that user can edit.

enter image description here

This PDF view has a button (top right save/print icon) that allows user to download edited document.

Question - is there a way to manually download or save edited PDF with JavaScript?

My goal is for user to be able to click on "Submit" button and it takes the filled out form and sends it to some API end point in my system.

2
  • If the embedded pdf editor is an iframe you can interact with it in javascript by refering to iframe elements. Or look for you embedded pdf plugin if has some api to interact with it Commented Aug 19, 2022 at 12:11
  • Without knowing the embedded pdf editor and how it is managed on client it's pretty hard to answer... Commented Aug 19, 2022 at 12:15

1 Answer 1

1

Question - is there a way to manually download or save edited PDF with JavaScript?

That's a loaded question, As with ALL PDFs the Form has been downloaded into the users browser or external pdf viewer, so no your JavaScript cannot touch it, see the downloaded address at the top. enter image description here

The other implied question is can the file be saved after edit by the user clicking the icon, and that answer is perhaps. See the Adobe banner when a user attempts to edit the restricted form.

enter image description here

Thus the user must print the form with handwritten entries and signature, then mail it using their choice of US snail mail or web mail provider.

It also depends very much on which Browser and form they are using since here the user Fred has printed some entries and thus can continue another time after going bowling

enter image description here

Note the forms layout has changed overtime. :-) and the wrong surname that needs re-edit later.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.