Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

Export 2 pages in a new file (e.g. 5 and 9)

$
0
0

Hi,

 

i have to export 2 Pages in a new file via button.

 

There is an option for export a page, but this option only lets you export pages which directly following (1 -3 or 6-9 but not 5 and 9)

 

One of the pages could be anywhere in this document, so i want to export it with this code

trustedexPa = app.trustedFunction( function ()

{

          // Additional code may appear above

          app.beginPriv();    // Explicitly raise privilege

          this.extractPages({nStart: this.pageNum, nEnd: this.pageNum});

          app.endPriv();

          // Additional code may appear below.

});

 

(the button always is on this page)

 

the Second page is ALWAYS page nr. 2

 

So now i have to create a button which exports the actual page + page 2 in a new file with a single click.

 

Do you have any ideas?

 

Sincerely

Timo


Viewing all articles
Browse latest Browse all 73766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>