Professional Web Applications Themes

Extract separate pages of a pdf file - Adobe Acrobat Windows

Is there any way that I can "automatically" separate a 60 page pdf file into 60 separate pdf files? This is a function that I will use a lot. If there is not a way to do it in Acrobat 6, is there a "plug-in" that will automate the process? Thanks,...

  1. #1

    Default Extract separate pages of a pdf file

    Is there any way that I can "automatically" separate a 60 page pdf file into 60 separate pdf files? This is a function that I will use a lot. If there is not a way to do it in Acrobat 6, is there a "plug-in" that will automate the process?

    Thanks,
    Barbara_Shaw@adobeforums.com Guest

  2. #2

    Default Re: Extract separate pages of a pdf file

    We make two plug-ins that can do this. ARTS Split & Merge Lite/Plus - both of which can be automated through Acrobat's batch processing. There are demo versions available so you can try it. <http://www.artspdf.com/arts_split_and_merge.asp>
    Gary_A.@adobeforums.com Guest

  3. #3

    Default Re: Extract separate pages of a pdf file

    [email]Barbara_Shawadobeforums.com[/email] wrote:
    > Is there any way that I can "automatically" separate a 60 page pdf file into 60 separate pdf files? This is a function that I will use a lot. If there is not a way to do it in Acrobat 6, is there a "plug-in" that will automate the process?
    >
    > Thanks,
    If you don't find a suitable Acorbat-based solution, try pdftk. It is a
    stand-alone command line tool with a "burst" feature that does exactly
    what you describe. The command would look like this:

    pdftk input.pdf burst

    Download pdftk from [url]www.AccessPDF.com/pdftk/[/url]. It is free software.

    Sid Steward
    Sid_Steward@adobeforums.com Guest

  4. #4

    Default Re: Extract separate pages of a pdf file

    This was made to extract page ranges but I've used it to extract page by page as well.
    This line:

    /C/Doents and Settings/Administrator/Desktop/ExtractFolder/...

    which occurs twice in my script looks for a folder called "ExtractFolder" on the Desktop. You'll need to change this path occurding to where your folder is located. Let me know if this works for you.
    Here is the script:

    /* Extract Pages to Folder */
    /* This script allows you to break down a long pdf file into smaller sections */
    /* You can choose how many pages per doent */
    /* This script uses the base file name and appends the page numbers too it. */
    /* You choose the starting page number for the name and the script numbers the rest accordingly. */
    /* You have to have a folder named "ExtractFolder" on the desktop or the script will not work. */
    /* This can easily be adapted for use on a Mac by changing the path to the "ExtractFolder" */
    /* For Mac Use, cPath: ":ExtractFolder:"+filename+"_" + global.preZero+(start_page_extract+initialPage)+"-"+global.endZero+(end_page+initialPage)+".pdf" */

    function addZeros(addZeroTo,startOrEnd){
    addZeroTo=addZeroTo+'';
    var numOfPages=this.numPages;
    var desiredNumLength=initialPage+numOfPages;
    desiredLengthString=desiredNumLength+''; // this converts desiredNumLength to a string
    dnl=desiredLengthString.length-addZeroTo.length;

    global.zerostring='';
    for (var zeros=0; zeros<dnl; zeros++){ global.zerostring=global.zerostring+"0"; } switch (startOrEnd){ case "start": global.preZero=global.zerostring; break; case "end": global.endZero=global.zerostring; break; } }

    var cResponse = app.response({ cQuestion: "The default page range is 20 pages. How many would you like?", cTitle:
    "Page Range", cDefault: "20" });

    if ( cResponse == null || cResponse == 0){
    app.alert("You've either chosen to \"Cancel\" or you selected \"0\" as a page range.",3);

    }else{

    var aResponse = app.response({ cQuestion: "What is the initial page number? The default is 1.", cTitle:
    "Initial Page Number", cDefault: "1" });
    if ( aResponse == null || aResponse == 0){
    app.alert("You've either chosen to \"Cancel\" or you selected \"0\" as the first page.",3);
    }
    else{

    pageRange=pInt(cResponse);
    pageRangeMinus=pageRange-1;

    initialPage=pInt(aResponse);

    // regular expression acquire the base name of file
    var re = /.*\/|\.pdf$/ig;
    // filename is the base name of the file Acrobat is working on

    var filename = this.path.replace(re,"");

    try {

    for (var start_page_extract = 0; start_page_extract < this.numPages; start_page_extract=start_page_extract+pageRange){

    if (start_page_extract+pageRangeMinus>=this.numPages) {
    var end_page=this.numPages-1;
    }else
    var end_page=start_page_extract+pageRangeMinus;

    if (start_page_extract+pageRangeMinus>=this.numPages) {
    addZeros((start_page_extract+initialPage),"start") ;
    addZeros((end_page+initialPage),"end");
    this.extractPages(
    {
    nStart: start_page_extract,
    nEnd: this.numPages-1,
    cPath: "/C/Doents and Settings/Administrator/Desktop/ExtractFolder/"+filename+"_" + global.preZero+(start_page_extract+initialPage)+"-"+global.endZero+(end_page+initialPage)+".pdf"
    });
    }
    addZeros((start_page_extract+initialPage),"start") ;
    addZeros((end_page+initialPage),"end");
    this.extractPages(
    {
    nStart: start_page_extract,
    nEnd: start_page_extract+pageRangeMinus,
    cPath: "/C/Doents and Settings/Administrator/Desktop/ExtractFolder/"+filename+"_" + global.preZero+(start_page_extract+initialPage)+"-"+global.endZero+(end_page+initialPage)+".pdf"
    });

    }

    }catch (e) {
    console.println("Aborted: "+e)
    }
    }
    }
    William Hopkins Guest

  5. #5

    Default Re: Extract separate pages of a pdf file

    By the way this needs to be created as a batch file. I did this in 5.0
    William Hopkins Guest

  6. #6

    Default Re: Extract separate pages of a pdf file

    Quote Originally Posted by William Hopkins View Post
    By the way this needs to be created as a batch file. I did this in 5.0
    Your script is exactly what I'm looking for to split a long pdf into separately numbered files. Is there a chance you could talk me through this as I'm not getting anywhere. I've updated the path in your script to match the location of ExtractFolder on my desktop, selected Batch Sequences/New Sequence/given it a name/selected Execute JavaScript from the list of commands/chosen 'Files open in Acrobat' as option 2 (run commands on...files on in acrobat) and run the script. All that happens is that the original pdf ends up unchanged in ExtractFolder. Any help greatly appreciated.
    bertiewooster is offline Junior Member
    Join Date
    Nov 2012
    Location
    United Kingdom
    Posts
    1

Similar Threads

  1. Extract Pages help......
    By Kristian_Wells@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: June 1st, 09:29 PM
  2. Copy multiple pages from one doc to another on a separate layer
    By Steven_Watts@adobeforums.com in forum Adobe Indesign Windows
    Replies: 1
    Last Post: June 16th, 03:59 PM
  3. Combining separate .pdf pages into one file
    By Ahmed_Saeed@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: May 12th, 09:38 PM
  4. separate list in pages x
    By Bart Plessers \(artabel\) in forum ASP
    Replies: 2
    Last Post: September 14th, 08:31 AM
  5. Inserting 1000's of Images on separate pages
    By YrbkMgr in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 3
    Last Post: July 20th, 03:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139