These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Using Button to Delete Pages

tlt213
Registered: Mar 9 2008
Posts: 7

Thanks in advance for any and all help.

I have a document that I use for my clients. Depending on the age of the client business different forms are needed. i would like to create a button that will add/delete the needed pages.

As an example if the business is new, I need to use 15 pages I would normally not use for an existing business.

I have acreated one 60 page pdf with fields that autofill from the cover page all the appropriate fields in my file.

I am using Acrobat Pro V6.0.

Again Thanks for your help.

My Product Information:
Acrobat Pro 6.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can delete pages from a PDF with JavaScript. Look up the "doc.deletePages" method in the Acrobat JavaScript Reference. This function will work from a button on a PDF.

You can find the reference here.

http://www.adobe.com/devnet/acrobat/

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

tlt213
Registered: Mar 9 2008
Posts: 7
Got it to work just great in Acrobat Pro! However, when I take it to Acrobat Reader to fill out the forms the Script does nothing.

I assume I am missing something simple.

Also, Other than creating a button that reverts to saved is there a way to Undo the check box without re-opening the file.

Thanks again for your Help.

Tim
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Double check the JavaScript Reference. With version 6 spawned pages could be deleted by Reader if Advanced Forms Features rights applied to the PDF. I believe this woudl require the LiveCycle Server product.

George Kaiser

tlt213
Registered: Mar 9 2008
Posts: 7
Using Acrobat Pro 6.0.
Carol85
Registered: Mar 11 2008
Posts: 5
Can I wrap or chain two form fields together so that the text put in by a user will flow from one text box on to another?