Solved

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

Posted on 2008-10-15
1
243 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
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…

772 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

9 Experts available now in Live!

Get 1:1 Help Now