1 Reply Latest reply on Aug 13, 2009 1:02 AM by try67

    Acrobat: Batch Extract Sequence

    FreeeAgent Level 1

      Hey all,

       

      I have the following script:

       

       

      /* Put script title here */

      /* Extract Pages to Folder */

       

      var filename = "PREFIX";

      //fileprefix

      //replace: code(X),day(Y),month(Z).

       

      var nihe=1;

      //first page

      //replace: number of the first page (1).

       

      try {

                  for ( var i = 0; i < this.numPages; i++)

                  this.extractPages

                  ({

                         nStart: i,

                         cPath: filename+ util.printf("%03d",i+nihe) +".pdf"

                  });      

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

       

       

       

      What it does:

      • Extracts every single page of a pdf into single pdfs

       

      What it needs to do:

      • able to handle a sequence of pages and extract them to a pdf.

      ex. 1 to 5 > Prefix 1.pdf

      ex. 5 to 10 > Prefix 5.pdf

       

      any help would be greatly appreciated.

       

      Message was edited by: FreeeAgent