Solved

Action to print specific pages of multiple files

Posted on 2014-04-22
4
413 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
printing double sided for a pdf document 19 218
PDF links 3 81
Help with sending PDF contents to server when Hyperlink Clicked. 5 51
Convert MS Word document to a PDF file 9 90
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…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

792 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