Solved

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

Posted on 2008-10-15
1
245 Views
Last Modified: 2012-05-05
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
Comment
Question by:rgc6789
1 Comment
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 125 total points
ID: 22723107
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now