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

Build a button to insert a new page with fallible text boxes.

New Here ,
Dec 20, 2017 Dec 20, 2017

Copy link to clipboard

Copied

I am working on a sort of rolling log. A sort of activity tracker if you will. I have the form built the way i want however I would like to build a button that will insert a new page. This way as the user fills the previous page he/she can click the button and the next one is inserted for them.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

222

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 ,
Dec 20, 2017 Dec 20, 2017

Copy link to clipboard

Copied

LATEST

You need a Page Template.  The really cool thing about Page Templates is that they work in the Free Reader!!  This didn't used to be true. 

Create a template on the "Organize Pages" display from the "More" dropdown.

For a template named "AdditionalItems" you'd use this button MouseUp code to spawn it as a new page at the end of the file

this.getTemplate("AdditionalItems").spawn({nPage:this.numPages-1 , bRename:true,bOverlay:false});

You'll find a really good example/tutorial here:

Search Downloads

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