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

Pages extration

hoachen
Registered: Jan 8 2010
Posts: 5

I am looking for a way to extract certain page(s) but, the pages does not always in number order. However, I will have the "Title" page for it.

For example:

First few pages of an ebook which contents:
table of contents (page from 1 to 4)
- chapter 1
- chapter 2
- index

Then
ALL the chapter text (page from 5-320)

finally,
the index page (just said from 321 to 350)

how can i extract each page "table of content" and the "index" pages that from 321-350? Meaning i have two files TOC_filename1.pdf and INDEX_filename1.pdf?

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Look at the "Document > Extract Pages" menu item. Is there any reason why the menu item will not work for you?Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

hoachen
Registered: Jan 8 2010
Posts: 5
it works, but i am extracting thousands of files. THat's why i need away to do it such as macro or something. Instead of, one file by one file to extract.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you looked at Batch Processing? the "Advanced > Document Processing > Batch Processing..." menu item.Is there some intelligence that's needed during the process to determine which pages to extract? If so then you may be able to use JavaScript in a Batch process.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

hoachen
Registered: Jan 8 2010
Posts: 5
I did tried out the batch processing but not with javascript. The batch processing that i tried, it will extract all the pages in which contain the phase we set. I also, look on the doc.extrac() basic simple javascript. This script will only can extract every pages that have same order, meaning on every file from page 1- 6 is fit content. Any other example you can direct me?

By the way, thank you very much for you help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The problem with something like custom page extraction is that you need a way to be able to detect the target pages. When you look at a document you can tell a Table of Contents page from a regular page by the overall look. There's actually quite a bit of sophisticated processing going there. An Acrobat Script, or any software program has to have something a bit more specific. JavaScript can be used to search for words or phrases at specific locations on the pages. If you can break your extraction process down into a simple set of page range and search criteria then it can be implemented in Acrobat JavaScript.

Have you looked at 3rd party tools for splitting PDFs? There are quite a few out there and some are very sophisticated.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

hoachen
Registered: Jan 8 2010
Posts: 5
Thanks for the advice. I will try it out and see what the result i will get.

THanks again for your help.