• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

button to delete pages

Participant ,
May 30, 2017 May 30, 2017

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.

TOPICS
PDF forms

Views

5.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 30, 2017 May 30, 2017

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.

View solution in original post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 30, 2017 May 30, 2017

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

And not reader  9 0r 10?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

No. Why would you use such old versions, anyway?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 30, 2017 May 30, 2017

Copy link to clipboard

Copied

The pdf is for the general public. So I have to allow for as much as I can

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 30, 2017 May 30, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

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…

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 31, 2017 May 31, 2017

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

You can add this with the server product Adobe LiveCycle Reader Extensions.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

have to use acrobat xi. no lc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

I say nothing about LiveCycle Designer. You can create the form with Adobe Acrobat.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 31, 2017 May 31, 2017

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

Copy link to clipboard

Copied

LiveCycle is the name of a collection of many products:

Adobe LiveCycle Enterprise Suite 4

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 31, 2017 May 31, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 01, 2021 Apr 01, 2021

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2021 Apr 01, 2021

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://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_Acro...

https://www.pdfscripting.com/public/Automating-Acrobat.cfm

 

  

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2021 Apr 02, 2021

Copy link to clipboard

Copied

LATEST

- 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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines