Solved

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

Posted on 2008-10-15
1
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

688 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