
Sort PDF by number of pages using Acrobat
This example script drives Adobe Acrobat to query the number of pages from a PDF file.
Information
Supported by: PowerSWITCH (WIN)
Language: Visual Basic Script
Description:
This script first launches Adobe Acrobat and gets the number of pages from the incoming job.
It then goes through the list of output connections and tries to find a match. A matching connection is called "Output (x)" where x is the number of pages in the PDF file.
If a match is found the PDF file is moved through that connection, if not found it is moved to error out connection.
Using this script
- Download and save the script on your computer: download script.
- Select the script element in your PowerSWITCH flow and browse to the script in the script package property.
or - Open the script in the SWITCHscripter and change it to your needs.
Example flow
- Sort PDF files on page count using Adobe Acrobat
This example flow sorts incoming PDFs in folders, based on the number of pages the file contains.
