These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Can page size be determined automatically?

SLDC
Registered: Oct 25 2010
Posts: 70
Answered

I've been asked whether there's an automated method for going through a PDF and determining which pages are larger than 8.5" x 11". We have over 100 large documents and need to find out which pages are oversized.
 
Is there any way to do this? My guess is "no", but I figured I'd check with the experts.
 
Thanks!

My Product Information:
Acrobat Pro 9.4.3, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Accepted Answer
Yes, you can with JavaScript. The script could loop through the pages of a document and check the page size using the doc.getPageBox method, and if it exceeds your limit, write the info (file name, page number) to the JavaScript console. You could create a batch process so it can be used to process a collection of PDFs. If you need help with the script, post again and someone should be able to help.
SLDC
Registered: Oct 25 2010
Posts: 70
Thanks, George.