I need to extract a series of pages and save each file with a specific name and in a specific folder. For example, pages 2-6 would be in a pdf named "new york city" and go in a folder named "city." Pages 8-23 would be named "Atlanta" and go in the same "city" folder. I will have to do this for multiple documents, so I want to automate the process. I'm working in acrobat 6 pro.
Since "extract pages" only allows me to extract one set of pages at a time, how would I go about writing a javascript to extract, name, and move a series of pdf files into the proper folder? I read about extractpages() in the adobe javascript manual, but didn't understand how I could apply it to my situation. Any help would be appreciated.
Is this a one time thing? Or a repetitive task? Is it always the same pages? Or do the page numbers change? Are you a programmer?
If this is a one time task, the the script can be run from the console window, and it is only a few lines.
Read these articals:
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/javascript_console/
http://www.acrobatusers.com/tutorials/2007/js_file_paths/
Here's the code:
If this is a repetitive task then you need an Automation Script, and especially if the page numbers and file names change. If you are not a programmer then you need to hire one, because this is not a one liner.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script