Split PDF into Multiple Page Ranges with Multiple OutputsHow to Edit PDFs?Merge multiple small PDFs on A4 size formathow to divide pdf into shall chunks (many pieces per page)?Merging multiple images into one document and add any caption/label to themIs there any tool to convert pdf to ppt in Linux/ Ubuntu offline?Splitting large pdf based on page range?Splitting all files in a folder with pdftkCreate a PDF with specific page ranges of multiple PDF files?How can I extract a page range from a PDF file AND retain the PDF tagging in the new file

Difference between "* and "+ registers in +clipboard VIM?

'The Queen That Never Was' or 'The Queen Who Never Was'?

Making a Plasma Gun that works

Why doesn't the road lose its thickness to the tyre?

I want to have a bond with a baby dragon. Can I?

Want to publish unpublished work found in an auction storage unit

If a picture of a screen is a screenshot, what is a video of a screen?

Is there a BIOS setting that controls cpu load sharing?

How do professors and lecturers learn to teach?

Is leave-one-out cross validation known to systematically overestimate error?

Deutsche Bahn: What does "Train not bookable until further notice" mean?

how to remove some small rocks at the bottom of a 4' vertical water pipe 2 1/2" diameter?

Why isn't current carried through a vacuum?

What type of glass fuse is this and what does the spring do?

Is there any difference between 旅行者 and 旅人?

How can I customize the Touch Bar interfaces for my tremor?

What is the logic for the map maker classifying the map this way, specifically in Canada?

binomial coefficient equal to sum

How to create slices for each selected area of a layer separated by transparency or solid color?

Why is the processor instruction called "move", not "copy"?

A short novel about reaching absolute zero

What should be done when the theory behind a PhD thesis turns out to be wrong?

Who owns copyright on works found in a storage unit/attic?

How to understand "waving it in the bloke from the Ministry's face"



Split PDF into Multiple Page Ranges with Multiple Outputs


How to Edit PDFs?Merge multiple small PDFs on A4 size formathow to divide pdf into shall chunks (many pieces per page)?Merging multiple images into one document and add any caption/label to themIs there any tool to convert pdf to ppt in Linux/ Ubuntu offline?Splitting large pdf based on page range?Splitting all files in a folder with pdftkCreate a PDF with specific page ranges of multiple PDF files?How can I extract a page range from a PDF file AND retain the PDF tagging in the new file






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















I need to split one PDF file into multiple PDFs, but using specific page ranges.



This CPDF command will split multiple page ranges, but merge them into a single PDF file.



cpdf in.pdf 1-3,90-97,112-end -o out.pdf


I need a command that will carry out a similar function to the above command, but output each page range to its own PDF.



I've looked for solutions to this problem in the PDFTK and CPDF documentation, but haven't found any help.










share|improve this question



























  • Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

    – vanadium
    Sep 29 at 10:09

















2


















I need to split one PDF file into multiple PDFs, but using specific page ranges.



This CPDF command will split multiple page ranges, but merge them into a single PDF file.



cpdf in.pdf 1-3,90-97,112-end -o out.pdf


I need a command that will carry out a similar function to the above command, but output each page range to its own PDF.



I've looked for solutions to this problem in the PDFTK and CPDF documentation, but haven't found any help.










share|improve this question



























  • Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

    – vanadium
    Sep 29 at 10:09













2













2









2








I need to split one PDF file into multiple PDFs, but using specific page ranges.



This CPDF command will split multiple page ranges, but merge them into a single PDF file.



cpdf in.pdf 1-3,90-97,112-end -o out.pdf


I need a command that will carry out a similar function to the above command, but output each page range to its own PDF.



I've looked for solutions to this problem in the PDFTK and CPDF documentation, but haven't found any help.










share|improve this question
















I need to split one PDF file into multiple PDFs, but using specific page ranges.



This CPDF command will split multiple page ranges, but merge them into a single PDF file.



cpdf in.pdf 1-3,90-97,112-end -o out.pdf


I need a command that will carry out a similar function to the above command, but output each page range to its own PDF.



I've looked for solutions to this problem in the PDFTK and CPDF documentation, but haven't found any help.







pdf pdftk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 29 at 10:19









user3140225

2,7004 gold badges12 silver badges24 bronze badges




2,7004 gold badges12 silver badges24 bronze badges










asked Sep 28 at 19:24









user8547user8547

2181 silver badge8 bronze badges




2181 silver badge8 bronze badges















  • Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

    – vanadium
    Sep 29 at 10:09

















  • Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

    – vanadium
    Sep 29 at 10:09
















Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

– vanadium
Sep 29 at 10:09





Just use a few commands if something is not achieved in a single run. In this case, you could have a separate command for each section, e.g. pdftk in.pdf cat 1-3 output out-1.pdf; pdftk in.pdf cat 90-97 output out-2.pdf etc.

– vanadium
Sep 29 at 10:09










1 Answer
1






active

oldest

votes


















2



















You can do this with cpdf using a simple for-loop:



for pages in 1-3,90-97,112-end;do cpdf in.pdf $pages -o out-$pages.pdf;done





share|improve this answer




























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177353%2fsplit-pdf-into-multiple-page-ranges-with-multiple-outputs%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2



















    You can do this with cpdf using a simple for-loop:



    for pages in 1-3,90-97,112-end;do cpdf in.pdf $pages -o out-$pages.pdf;done





    share|improve this answer































      2



















      You can do this with cpdf using a simple for-loop:



      for pages in 1-3,90-97,112-end;do cpdf in.pdf $pages -o out-$pages.pdf;done





      share|improve this answer





























        2















        2











        2









        You can do this with cpdf using a simple for-loop:



        for pages in 1-3,90-97,112-end;do cpdf in.pdf $pages -o out-$pages.pdf;done





        share|improve this answer
















        You can do this with cpdf using a simple for-loop:



        for pages in 1-3,90-97,112-end;do cpdf in.pdf $pages -o out-$pages.pdf;done






        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Sep 29 at 10:18

























        answered Sep 29 at 10:10









        user3140225user3140225

        2,7004 gold badges12 silver badges24 bronze badges




        2,7004 gold badges12 silver badges24 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177353%2fsplit-pdf-into-multiple-page-ranges-with-multiple-outputs%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü