Skip to main content
Participant
July 18, 2019
Question

How to submit a PDF Form, store it and redirect to website?

  • July 18, 2019
  • 2 replies
  • 3743 views

Workflow:

  1. User downloads a PDF document from a website.
  2. User opens the PDF document in Adobe Acrobat Reader DC (Side note: Other PDF viewers or the browser's inline PDF viewer won't support submitting forms).
  3. User fills out the form within the PDF document and clicks on a submit button.
  4. The PDF document is submitted on a website and stored there.
  5. User gets redirected to the website or at least gets a success message within Adobe Acrobat Reader DC.

I have accomplished Step 1-4. However on step 5 I'm only able to return the successfully saved PDF file which gets opened in Adobe Acrobat Reader DC.

On the technical side I do this (starting at step 4 of the workflow):

  1. PDF form is submitted - export type: PDF (whole document)
  2. On the target URL a PHP server script stores the PDF document.
  3. Now I want to send a redirect response. I tried the following: PHP header redirect. HTML code with <meta HTTP-EQUIV="REFRESH" content="0;url=xxx">

So my question is how to redirect the user to a website after submitting the PDF form? Ideally the redirection should be controlled by the server script.

This topic has been closed for replies.

2 replies

Legend
July 19, 2019

That doesn't help you redirect, but you can return a status message to a field.

Participant
July 19, 2019

https://forums.adobe.com/people/Test+Screen+Name  schrieb

That doesn't help you redirect, but you can return a status message to a field.

That's definitely an idea. Unfortunately I don't want to change the file contents in this way, because if the user prints, shares, etc. the file the message would remain (in most cases) within the file.

Isn't there a way to persuade the PDF-Reader to display the message in a pop-up or to redirect the user to a website? I'm wondering if I'm the first person who would need that.

try67
Community Expert
Community Expert
July 19, 2019

Actually, both things are possible, since the FDF basically returns the structure of a file for the application to open, and that file can contain a script, which in turn can open an alert window or even launch a URL in the browser.

Legend
July 18, 2019

Reader can’t display HTML. Manage your response in Reader and without redirection. You can return field values in FDF.

Participant
July 19, 2019

https://forums.adobe.com/people/Test+Screen+Name  schrieb

Reader can’t display HTML. Manage your response in Reader and without redirection. You can return field values in FDF.

Thx for your response. Yes the reader can't display HTML, however based on another forum suggestion I tried this approach assuming it may work.

What do you mean with "You can return field values in FDF" - How does this help me to redirect the user to a website?