Solved

Action to print specific pages of multiple files

Posted on 2014-04-22
4
417 Views
Last Modified: 2014-04-28
I wish to create an action that will print only the last couple pages of multiple files within a given folder.  Is there a way to do this?
0
Comment
Question by:mak345
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:captain
ID: 40016355
Yes and No

You can use the batch processing in Acrobat Pro to create a batch print job on a specific folder. But you can ONLY use the commands available in the standard print dialog.

So Yes if all the PDFs have the same page count (simply specify the page numbers for the two pages in the page range)

or

No if they have different page counts. As there is no way to specify the last page from the print dialog, let alone the last two only
0
 

Accepted Solution

by:
mak345 earned 0 total points
ID: 40017219
I was able to get it to work with files with different page counts by adding an "Execute JavaScript" step with the following code:

this.print({bUI: false, nStart:this.numPages-1, bSilent: true, bShrinkToFit: true});

Thanks
0
 
LVL 30

Expert Comment

by:captain
ID: 40017599
Excellent, nice find.
0
 

Author Closing Comment

by:mak345
ID: 40026827
I did additional research on the internet and found the code which is included in my comment.  It worked perfectly.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Getting information about Fonts being used in a PDF file A colleague of mine recently faced an issue related to the PDF file format. The PDFs were containing mission critical client information, they were successfully mailed but there was a sm…
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question