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

Deleting pages before 'submitting'

prander
Registered: Nov 6 2008
Posts: 44

I have a submit function set for a form, but I'd also like to delete pages before the user sends it via e-mail submission. I've figured out how to delete the pages, but it prompts the user to choose the pages and I want it to be automated.

Example: Customer service rep's can fill out a 'close account' form with the pertinent account info, but the first two pages on the internal side are instructions a sample page. I want the submit button to automatically delete those pages as it creates the pdf attachment (in the background) for the e-mail).

I'd also like to be able to do this on a "print" button. Same idea where page 1 is directions and only page 2 is the form that needs to be printed.

What's the script?
And is it written on the "Page Properties-Action" tab or the button "Action" tab.

TIA,
Page

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Can't do this. In fact, the only way to delete pages is for the form to be displayed in Full Acrobat, it won't work in Reader without special enabling. And you've seen in Acrobat, it won't do it without first asking the user.

I would suggest placing the instructions into a separate PDF that's embedded(attached) into the form. You can place a link to the instructions on the form. This solves both the print and submit problem without any scripting. And doesn't cause permanent changes in the user's document.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

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