/ Id-Extras Forum / Extract Pages says the page ranges it generated are invalid

  • Author
  • #7115 Reply
    justaddorangejuice
    Participant

      Hello. I just downloaded ExtractPages 2.0.4 because I need to split an indd document so that each chapter is its own document.

      What I’m doing:

      1. Run the script. When the window opens, select “Split by Style.”
      2. Select “Chapter #” as the paragraph style.
      3. Extract as “groups of pages”.
      4. ExtractPages generates a bunch of numbers in the Range field.
      5. Click Extract. I immediately get an error message saying “Invalid page range.”

      Does anyone have any idea what I’m doing wrong here? It seems odd that the numbers the script itself generates are invalid. I’ve ended up manually adding sections at each instance of “Chapter #” paragraph style, and ExtractPages does seem to work normally if I “Split by section” instead. But I have to do this to a bunch of documents, and I really don’t want to have to go through and add in sections every time when this script is supposed to be able to split at a paragraph style.

      #7117 Reply
      Ariel
      Keymaster

        Hi,

        That is a bit strange.

        Can you paste here the page numbers that the script generates in the Range field?

        #7118 Reply
        justaddorangejuice
        Participant

          Sure.

          - +0; +1 - +9; +10 - +18; +19 - +30; +31 - +39; +40 - +47; +48 - +57; +58 - +67; +68 - +77; +78 - +86; +87 - +95; +96 - +105; +106 - +115; +116 - +124; +125 - +134; +135 - +144; +145 - +153; +154 - +163; +164 - +173; +174 - +183; +184 - +193; +194 - +203; +204 - +214; +215 - +224; +225 - +233; +234 - +246; +247 - +256; +257 - +266; +267 - +276; +277 - +286; +287 - +296; +297 - +306; +307 - +316; +317 - +325; +326 - +335; +336 - +345; +346 - +355; +356 - +363; +364 - +373; +374 -

          #7119 Reply
          Ariel
          Keymaster

            Thanks.

            Hmm. If you delete the - +0; that appears right at the beginning, does it work? (Don’t forget to delete the semicolon after the 0 as well.)

            #7123 Reply
            justaddorangejuice
            Participant

              That fixed it! The script’s running now. Too late for this book since I used sections instead, but I’ve got plenty more books I need to do this too coming this week so I’ll remember to remove the – +0; from now on.

              Thank you!

              #7124 Reply
              Ariel
              Keymaster

                Well, it’s a bug with the script I think, and it reminds me of a bug that I thought was fixed.

                I don’t suppose there’s any chance you could send me the file to look at and see what’s going on? (send to: admin [at] id-extras.com).

                Thanks,

                Ariel

                 

              Viewing 6 posts - 1 through 6 (of 6 total)

              Tagged: 

              Reply To: Reply #7117 in Extract Pages says the page ranges it generated are invalid
              Your information: