• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

How do you use a button on a pdf to add a new page or section?

I have an old PDF that has a button that creates a duplicate of the last page when clicked on. The page is password protected so I can't reverse engineer it. That said, I'm using Adobe Live Cycle Designer to add all of the other functionality but this doesn't seem to show up on the how to files with the application or online. If it was available in version 7 I'd think it'd be available now. Any help is appreciated.
0
rgc6789
Asked:
rgc6789
1 Solution
 
Karl Heinz KremerCommented:
This feature was implemented with a page template. You "spawn" a new page based on a template. I know how to do that with regular AcroForms, but not with Designer (that does not mean it cannot be done with Designer, I just don't know because I don't use it).
In Acrobat 9 you will find the Page Template feature under "Advanced>Document Processing>Page Templates" (this is where you define templates).

To add a new page to the document, you have to use some JavaScript. The Doc.spawnPageFromTemplate() method allows you to create new pages based on page templates.

Here is a sample from the Acrobat JavaScript Reference manual:

Spawn each template page in the current document.




var n = this.numTemplates;
var cTempl;
for (i = 0; i < n; i++) 
{
    cTempl = this.getNthTemplate(i);
    this.spawnPageFromTemplate(cTempl);
}

Open in new window

0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now