• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adding a 9 page pdf automatically to a form after clicking a button

Community Beginner ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

Hi All, does anybody know how i can get a button to browse to a pdf file and then add a 9 page pdf to the form ? many thanks.

TOPICS
How to , JavaScript , PDF forms

Views

412

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

You can add pages at Tools > Organize Pages

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

Why would you want to do it using a button? Also, where in the file do you want to insert the new pages?

And are you aware this won't work if used outside of Acrobat?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

Hi , i am aware yes, i have the 1st page with user information on it, things like, name, address, passport details, driving license etc etc. The fields on this 1st page are then put into various letters, contracts, licenses and forms further on in the document, Acrobat forms is extremely useful for this kind of repitition. It saves hours and saves on making mistakes!

The Button will be to add in a 9 page pre filled PDF document (with different details for different users) into a specific location later in the document. 

Kind Regards

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 30, 2021 Mar 30, 2021

Copy link to clipboard

Copied

LATEST

Here's some more stuff to read:

https://www.pdfscripting.com/public/How-to-Save-a-PDF-2.cfm?sd=40  (Same technique is used to load file)

https://www.pdfscripting.com/public/Trust-and-Privilege-in-Acrobat-Scripts.cfm

 

These two articles cover file browsers:

https://acrobatusers.com/tutorials/popup_windows_part3/

https://acrobatusers.com/tutorials/popup_windows_part4/

 

And in general you'll need some info on creating Automation Scripts, like how to create a toolbutton:

https://www.pdfscripting.com/public/Alerts-Popups-and-Other-UI.cfm

https://www.pdfscripting.com/public/Automating-Acrobat.cfm

 

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines