Copy link to clipboard
Copied
In Acrobat XI, I want a button to delete 4 pages.
Scenario, an 8 page PDF, first 4 pages are instructions. Once the form is complete, the user can click the button and the pages 1 to 4 will delete. Leaving you only the 4 remaining form pages.
I did have something before,...still looking.
Copy link to clipboard
Copied
Yes, Reader XI and DC can spawn pages and can delete pages that have been spawned, even if they where spawned in a previous session.
Copy link to clipboard
Copied
This code will do that:
this.deletePages(0,3);
Note it won't work in Reader, though. Only in Acrobat.
Copy link to clipboard
Copied
Is there something that will work in Reader. Also will spawning a new page from a template work in reader?
Copy link to clipboard
Copied
Yes, Reader XI and DC can spawn pages and can delete pages that have been spawned, even if they where spawned in a previous session.
Copy link to clipboard
Copied
And not reader 9 0r 10?
Copy link to clipboard
Copied
No. Why would you use such old versions, anyway?
Copy link to clipboard
Copied
The pdf is for the general public. So I have to allow for as much as I can
Copy link to clipboard
Copied
Why do you want to delete these pages anyway? If it's to save space when submitting the file, then submit just the form data, which is a tiny FDF file... You can import it into a blank version of the PDF on your end.
Copy link to clipboard
Copied
This is an 8 page pdf, 4 pages of instructions, 4 pages of form. There is a Part C, where the user may need to complete more than 1 Part C.
So to remove the instructions is why I delete. I also need to allow to spawn additional part c's.
I am not part of this process, others will receive the completed forms, so I have no input there, just making the pdf.
Copy link to clipboard
Copied
So to remove the instructions
As a workaround you can place instructions in a separate PDF file, embed this file as an attachment, and use a startup script to open this attachment in another window at document opening.
So it will not printed with the main content.
Not sure if you can do the same for the additional part c'sā¦
Copy link to clipboard
Copied
murrjames wrote
And not reader 9 0r 10?
For this old versions you must add Forms rights to the document.
Copy link to clipboard
Copied
how do you "add Forms rights to the document."
On Wed, May 31, 2017 at 5:40 AM, Bernd Alheit <forums_noreply@adobe.com>
Copy link to clipboard
Copied
You can add this with the server product Adobe LiveCycle Reader Extensions.
Copy link to clipboard
Copied
have to use acrobat xi. no lc.
Copy link to clipboard
Copied
I say nothing about LiveCycle Designer. You can create the form with Adobe Acrobat.
Copy link to clipboard
Copied
The product mentioned above is not the same as LiveCycle Designer. You can use it to apply rights to an Acrobat form.
Keep in mind it's going to cost you a lot (I'm talking 4 or even 5-figure sums) to get it, though, so consider if it's worth it just to allow people with older versions of Reader to delete some instruction pages...
Copy link to clipboard
Copied
Ok, I am confused, is LC different than Adobe LiveCycle Reader Extensions?
I have to use acrobat and cant pay for anything else. So delete and
spawning wiill not work in older versions with out Adobe LiveCycle Reader
Extensions?
Copy link to clipboard
Copied
LiveCycle is the name of a collection of many products:
Copy link to clipboard
Copied
Ok, I am confused, is LC different than Adobe LiveCycle Reader Extensions?
Yes. "LiveCycle" is the name of a family of products. LiveCycle Designer and LiveCycle Reader Extensions are two (separate) products within that family.
I have to use acrobat and cant pay for anything else. So delete and
spawning wiill not work in older versions with out Adobe LiveCycle Reader
Extensions?
That's correct.
Copy link to clipboard
Copied
Is there a script that I can use to delete the current page (regardless of page number) and the next 1 or 2 pages after it?
Any help would be appreciated!
Also, is there a way to get my TOC to update automatically if a portion of my form is deleted because it no longer applies? (ie. instructions for a bread maker on page 22 and 23 - person doesn't have a bread maker - clicks a button to delete page 22 and 23, and the table of contents no longer shows "Bread Maker Instructions" - for example)
Copy link to clipboard
Copied
console and folder level script can delete and insert pages, but not scripts in a document, i.e. form scripts.
Updating TOC pages is not realistic. However, it might be possible to recreate the TOC pages with a scirpt, depending whats required for the graphics, fonts etc.
Take a look at these resources:
https://www.pdfscripting.com/public/Automating-Acrobat.cfm
Copy link to clipboard
Copied
- You can use this code to do it:
this.deletePages(this.pageNum);
- That might be possible, but the TOC will have to be built in a dynamic way to allow for it to update when pages are added or removed. If you're interested I could develop such a tool for you, for a fee. You can contact me privately via [try6767 at gmail.com] to discuss it further.