Script for extracting pages into separate documents?

Hi,
Using Acrobat 9 Pro on an XP machine, my job entails taking PDFs over 2000 pages long, sorting them into smaller documents based on their contents, and (once they are sorted) breaking down any documents longer than 25 pages into individual PDFs of 25 pages each. So, for instance, if I have a document of 110 pages, I end up with four 25-page documents and one 10-page document. Right now I do this by extracting pages 26-50 and deleting them from the original, then saving the extracted pages. Would it be possible to write a script that could accomplish the same end result? (I have CS4 Design Premium, so if anyone knows how to do this with another CS4 program, that would work also.)
Thanks!

Yes, it can done. If you want to do it yourself look in the JavaScript Reference file under the Document object, extractPages() method.

Similar Messages

  • Script for extracting multiple pages

    Hi,
    I'm working with the default "extract pages" script: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.465.html
    I want to modify it to extract 2 pages at a time.  For example, say I start with a 6-page document.  I would like the script to extract pages 1,2 as one document, then pages 3,4 and 5,6.
    How would I modify the script to do this?
    Thanks!

    You could use a loop, but you don't need to for what you want. Do something like:
    // Extract first two pages to a new file
    extractPages({nStart: 0, nEnd: 1, cPath: "/F/temp/file1.pdf"});
    // Extract 3rd and 4th pages
    extractPages({nStart: 2, nEnd: 3, cPath: "/F/temp/file2.pdf"});
    // Extract fifth and sixth pages
    extractPages({nStart: 4, nEnd: 5, cPath: "/F/temp/file3.pdf"});
    Obviously, you need to change the file paths.

  • What version of Acrobat is needed to split pages of a PDF into separate documents? Standard or Pro?

    Need to be able to split PDFs into separate files dependent of what page. Can standard do this? Or will i need Pro?

    Hi asfkmg,
    Both Acrobat Standard and Pro will allow you to split a PDF into separate documents. Here's a great video that shows you how: https://acrobatusers.com/tutorials/how-to-break-a-pdf-into-parts
    Best,
    Sara

  • How to split PDF pages into separate pages?

    I have a PDF document that is in booklet format (i.e., front cover and rear cover on a single page) with two pages to a single 8-1/2 X 11 page size. Is there an application that can split the double pages into separate PDF pages? I don't want to use screen capture to create separate PDF's if there is a better way.

    There are a lot of utilities for PDF files so you might search at CNet Downloads or MacUpdate to see what's available. PDF Clerk and PDF Pen may let you drag each page out of the document as a separate file. Even Preview may let you do the same.

  • Scanning multiple pages into single document

    Is there a way to scan multiple pages into single document?  I am using the following: HP pavilion laptop with windows 8,  HP photosmart C6380 all in one printer scanner copier.

    Hi,
    Please try
    Double click printer icon on desktop,
    Select Scan a Document or Photo,
    Put the first page on the glass (face down),
    Check options (size, dpi ...), and select Scan document to file,
    Click Scan - machine will scan the first page
    Remove the first page on the glass, put the second page,
    Click + (plus sign) It sits on the left hand side of a red x
    Machine will scan the second page, put 3rd page on the glass and click + again ..... to the end then click Save
    Click Done after Save
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I scan multiple pages into one document?

    How do I scan multiple pages into one document?
    HP Photosmart 5514-e-All-in-One Printer B111h
    Model CQ 183 A

    Hi,
    Have you tried this (using PDF format).
    Launch the scan from the HP Solution Center
    Click Change Settings.
    Select the desire Scan Shortcut, then click Save to file save options
    Make sure Create One File per scanned page... is Unchecked, Approve and perform the Scan.
    Regards,
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What is the keyboard shortcut for extract page?

    There used to be a series of keyboard shortcuts for page manipulation (and other) - using acrobat 9 till recently. Now new to Acrobat XI Pro (Windows 8.1). I can see the shortcuts for insert & delete page but not for extract page (and other). Am I missing something? The keyboard shortcuts are a must for speed and a healthy right wrist.
    Thank-you for your time.

    There isn't a direct way of doing it, but you can "hack" it using a script. Create a folder-level script with this code:
    app.addMenuItem({cName: "MyExtractPages", cUser: "E&xtract Pages", cParent: "Edit",
        cExec: "app.execMenuItem(\"ExtractPages\");", cEnable: "event.rc = (event.target!=null)"});
    This will add a new menu item to the Edit menu which you could access using the following keyboard shortcut: Alt+E, X

  • How do I copy different parts of the page into separate pdf files?

    I have Adobe Acrobat 9 Pro and an assortment of very large pdfs that I want to make into about a thousand individual pdfs.  The pages contain text and I want to be able to copy parts of the page into separate different pdfs.  It would be really nice if I could split up the page into the required sections by highlighting all the different sections on the page and then save each section to individual pdfs all at once.  Acrobat has so many features that I am hoping that it can do something like this.  Thanks  Anewbie282

    With the number of pages you are talking about, there is no real easy solution. However, try extracting the page(s) you want in a new file. After the extracted file exists, try using the object select tool to remove the parts you do not want. You might find using the redaction tool to zero out the parts you don't want might work better. Unfortunately, a PDF is not a word processor type data file and the editing is likely not going to be easy.

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to insert Tab Pages into a document

    I have a print job, where I need to insert tab pages into a document. Is there a tab template that I can insert into the Indesign document? If not, how can I create tab pages in Indesign?

    When I used to do tabs I would set up a page that was as wide as the tab sheet including the tab, then add text frames in each tab position.

  • Scanning multiple pages into one document with an automatic document feeder

    when using automatic document feeder to scan in multiple pages - using the Image Capture app, this process does not work for more than 2 pages. However works perfectly in PC environment.
    Using a MacBook Pro with 10.8.4 and a Lexmark Interpret 405S All In One Scanner.
    Is there any other all in one device that can perform this function in a Mac environment?
    Please advise.

    Hi @FentyFly ,
    I see by your post that you would like to know how to scan multiple pages into one file. I would like to help you out today.
    From the HP Scan Software, click on the link for Advanced Settings, then uncheck Create a separate file for each scanned page.
    Here is a URL for how to scan and change the settings. Just select your operating system.
    Scan.
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Script to extract pages with comments

    I know that what I would like to do is probably quite simple. I'm trying to automatically take a source document, and extract all pages with comments to a new document.  Ideally, I would have multiple versions of this script for different purposes.  I used to be a business analyst years ago, but it's been years since I've written any code, and even back then I used SQL almost exclusively--it's been about 12 years since I've written any code other than SQL queries, and back then it was highschool projects written in C++ before OOP was really a big thing.  I'd attempt to read documentation myself and figure it out, but I really don't even know where to start -- my CS knowledge at this point is pretty much only conceptual.  Whenever I have a similar VBscript problem using MS software, usually all I do is find an existing function and modify one or two lines to meet my needs, so I've never really had to learn how the scripts I've used work.  I just tinker with existing stuff to get what I need.  My past coding experience does give me an idea is to the general algorithm that I think would work.  To show that I really tried with this one, I paste my guess as to how I would code this below: 
    1)     Create For loop for source doc.
    2)     Create FOR loop for new doc
    3)     Analyze page in source doc
    4)     IF source page has any comments or highlighting THEN somehow note that page and increment "new doc" counter
    5)     Increment source doc counter
    6)     Repeat 3-5 until all pages in source doc have been analyzed
    7)     Create new file
    8)     Extract pages noted during step 4 to new file.
    If someone could help me create the above script, I would probably be smart enough to get it to meet my needs.  What I'd really like are two versions of that script.  If asking for the community to simply provide me with code is not a cool thing to do, could someone link me to a good tutorial and/or existing scripts so I could try and figure it out myself?
    1)     One that extracts only pages with text comments (using the typewriter tool).
    2)     One that extracts pages with highlights or text comments.

    In the second to last line of my OP I meant "using the 'Add text comment' tool" not "using the typewriter tool".

  • Keystroke for Extract Page

    One feature I am missing incredibly is the keystroke for extracting a page. We have a catalog and I have to extract pages of the catalog into individual PDF files. I would like to have a key command, rather than having to return to the Apple menu each and every time I need this function. I forget, was it version 5 that last had Command-E, I miss it so much...

    There isn't a direct way of doing it, but you can "hack" it using a script. Create a folder-level script with this code:
    app.addMenuItem({cName: "MyExtractPages", cUser: "E&xtract Pages", cParent: "Edit",
        cExec: "app.execMenuItem(\"ExtractPages\");", cEnable: "event.rc = (event.target!=null)"});
    This will add a new menu item to the Edit menu which you could access using the following keyboard shortcut: Alt+E, X

  • Lock Page View for all pages in a document.

    Can I lock or freeze a Page View (Zoom Level and Pan Location) for a document while scrolling through the pages in a document? In other words: I want to see only a specific region of all the pages, while scrolling through the document. Is there a way to do this? Thanks!

    You may be able to do that with JavaScript (check the scripting forum for help there). Otherwise, I think I remember such in the preflight options. At least worth a check.

  • Inserting a page into a document

    I hate sections but whether I designate a Section or not, the program just goes ahead and does it. Then if I need to insert a page after the initial layout, and can't do it. Is there a work around here?

    Whatever version of Pages you are using (you haven't said) does not create Sections, you do.
    Sections do not make it impossible to insert extra pages or reorder existing pages.
    A Section Break is an invisible character inserted into the document, dividing it into what it says; "sections" (chapters if you will).
    A Section is a series of pages within a Word Processing document that share Headers and Footers, Layout and background images.
    The Section can be dragged into a different order in the Thumbnails, but the pages within the section do not change. They move together, otherwise you would scramble your text.
    Peter

Maybe you are looking for