conditional page delete.
( I am using Adobe Pro XI and Adobe Standard XI)
I am looking for a Acroform button script to delete page 2 but only if the PDF is 3 pages ( or greater than 2 pages.)
My form is 2 pages by default and if the user needs to expand the document they can click a check box to spawn a new Template that becomes the new page 2. I have a reset button that will reset the form fields and deletes the new page 2.
THE PROBLEM: if the user does not opt to generate a new page 2 leaving it as a 2 page document as soon as they hit reset button the document now becomes a 1 page document.![]()
So I need to figure out a way to use the page count feature to evaluate the PDF to see if it greater then 2 pages and if so then run the delete page 2 script.
The user will be using Adobe Reader XI or Reader DC to fill out the form.
Any help will be greatly appreciated from this scripting newbie.
Examples would help me modify to match my text fields.
Thanks in advance for your Help!
Tom McCarty
