Skip to main content
Participant
August 16, 2022
Question

Using Checkboxes to Export pages from pdf Form

  • August 16, 2022
  • 1 reply
  • 354 views

I am creating a .pdf fillable form and it is a multi page document, but I would love to have a section on the first page that a user can Check a Checkbox if they need the associated page for that prompt exported to a new doc. As an Example: I have 4 sections of the form Red,Yellow,Blue,Green. As the user fills out various sections on a main data entry page (first Page), each of the 4 sections populate as needed. In some instances the user will only need the red secion, but in some they will need to choose any combination of the sections and only those sections be exported to a .pdf. I'm new to scripting and have pieced together the rest of my document to work well... Just need help finishing up the exporting portion.

Thanks

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
August 16, 2022

So what you are really asking is how to export a page from a PDF?  Exporting an actual page is only possible if all the users are using the document in Acrobat Pro. 

Here's the reference entry for the "extractPages" function:

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#extractpages

 

However it is possible to export the form data on a page. So a better solution might be to have a set of separate forms that are copies of the pages you want to export. Then move the data into these documents.  

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often