Groups > Software Support > Adobe Acrobat Scripting > Re: Printing last page




Printing last page

Printing last page
Mon, 5 May 2008 12:15:19 -0700
Can anyone help me this?  I am having trouble making a script to print the 
last page of my pdf files.
I have a folder with 20 pdf files.  I want to make a batch process to go to 
the folder, open the files
and send to my printer just the last page of each document.

Here's one of my attempts which only prints the first page of each document
/* Print Last Page of File */
var pp = this.getPrintParams();
pp.reversepages = true;
pp.firstpage = 0;
this.print(pp);


Here's another of my attempts which only prints the first page of each 
document
/* Print Last Page */
var pp = this.getPrintParams();
({
        bUI: false,
        nStart: pp.lastpage,
        bSilent: true,
        bShrinkToFit: true
});
this.print



Post Reply
Re: Printing last page
Mon, 5 May 2008 12:27:35 -0700
Have you tried what was suggested in your other post:

Post Reply
Re: Printing last page
Tue, 6 May 2008 11:49:25 -0700
THANKS GEO

/* Print Last Page */
/* This sequence prints the last page of
   each document selected to the default printer.
* / this.print
({
        bUI: false,
        nStart: this.numPages - 1,
        bSilent: true
});

THIS SCRIPT WORKS.

TP


<Geo_Kaiser@adobeforums.com> wrote in message 
news:59b52af5.0@webcrossing.la2eafNXanI...
> Have you tried what was suggested in your other post:
>
> thomaspinto, "Printing Last Pages" #, 2 May 2008 8:55 am 
> </webx?14@@.59b52596> 

Post Reply
about | contact