Solved

Action to print specific pages of multiple files

Posted on 2014-04-22
4
419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…

690 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