Rotate all pages of PDF from command line in OS X?











up vote
3
down vote

favorite












Is there any way to rotate PDF pages from the command line in in OS X?










share|improve this question




























    up vote
    3
    down vote

    favorite












    Is there any way to rotate PDF pages from the command line in in OS X?










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      Is there any way to rotate PDF pages from the command line in in OS X?










      share|improve this question















      Is there any way to rotate PDF pages from the command line in in OS X?







      macos command-line pdf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 18 '16 at 2:19









      nc4pk

      7,172114867




      7,172114867










      asked Jan 14 '16 at 9:11









      akxlr

      1586




      1586






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote













          Sejda's command line can help rotate PDF pages.



          ./bin/sejda-console rotate --rotation 90 --files /tmp/file.pdf --output /tmp --pageSelection 4,12-14


          Open source project, free, I'm one of the developers.






          share|improve this answer

















          • 1




            Not in homebrew. :-(
            – Mitar
            Dec 16 '16 at 0:20


















          up vote
          1
          down vote













          This can be achieved by using pdf90, pdf180 or pdf270, which are all part of pdfjam. The latter comes with mactex. You can install it with homebrew cask, by brew cask install mactex. To rotate the PDF document.pdf 90 degrees anticlockwise, use:



          pdf90 document.pdf


          This will create a file document-rotated90.pdf. See also this answer.






          share|improve this answer





















          • Installing MacTeX to rotate a PDF may be an overkill...
            – Alexey
            Nov 21 at 16:53




















          up vote
          0
          down vote













          Check out qpdf. From the manual:




          --rotate=[+|-]angle[:page-range]



          Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.4, “Page
          Selection Options”. If the page range is omitted, the rotation is
          applied to all pages. The angle portion of the parameter may be either
          90, 180, or 270. If preceded by + or -, the angle is added to or
          subtracted from the specified pages' original rotations. Otherwise the
          pages' rotations are set to the exact value. For example, the command
          qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8 would rotate
          pages 2, 4, and 6 90 degrees clockwise from their original rotation
          and force the rotation of pages 7 through 9 to 180 degrees regardless
          of their original rotation, and the command qpdf in.pdf out.pdf
          --rotate=180 would rotate all pages by 180 degrees.







          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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',
            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/3.0/"u003ecc by-sa 3.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%2fsuperuser.com%2fquestions%2f1026213%2frotate-all-pages-of-pdf-from-command-line-in-os-x%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            Sejda's command line can help rotate PDF pages.



            ./bin/sejda-console rotate --rotation 90 --files /tmp/file.pdf --output /tmp --pageSelection 4,12-14


            Open source project, free, I'm one of the developers.






            share|improve this answer

















            • 1




              Not in homebrew. :-(
              – Mitar
              Dec 16 '16 at 0:20















            up vote
            3
            down vote













            Sejda's command line can help rotate PDF pages.



            ./bin/sejda-console rotate --rotation 90 --files /tmp/file.pdf --output /tmp --pageSelection 4,12-14


            Open source project, free, I'm one of the developers.






            share|improve this answer

















            • 1




              Not in homebrew. :-(
              – Mitar
              Dec 16 '16 at 0:20













            up vote
            3
            down vote










            up vote
            3
            down vote









            Sejda's command line can help rotate PDF pages.



            ./bin/sejda-console rotate --rotation 90 --files /tmp/file.pdf --output /tmp --pageSelection 4,12-14


            Open source project, free, I'm one of the developers.






            share|improve this answer












            Sejda's command line can help rotate PDF pages.



            ./bin/sejda-console rotate --rotation 90 --files /tmp/file.pdf --output /tmp --pageSelection 4,12-14


            Open source project, free, I'm one of the developers.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 14 '16 at 10:19









            Edi

            45539




            45539








            • 1




              Not in homebrew. :-(
              – Mitar
              Dec 16 '16 at 0:20














            • 1




              Not in homebrew. :-(
              – Mitar
              Dec 16 '16 at 0:20








            1




            1




            Not in homebrew. :-(
            – Mitar
            Dec 16 '16 at 0:20




            Not in homebrew. :-(
            – Mitar
            Dec 16 '16 at 0:20












            up vote
            1
            down vote













            This can be achieved by using pdf90, pdf180 or pdf270, which are all part of pdfjam. The latter comes with mactex. You can install it with homebrew cask, by brew cask install mactex. To rotate the PDF document.pdf 90 degrees anticlockwise, use:



            pdf90 document.pdf


            This will create a file document-rotated90.pdf. See also this answer.






            share|improve this answer





















            • Installing MacTeX to rotate a PDF may be an overkill...
              – Alexey
              Nov 21 at 16:53

















            up vote
            1
            down vote













            This can be achieved by using pdf90, pdf180 or pdf270, which are all part of pdfjam. The latter comes with mactex. You can install it with homebrew cask, by brew cask install mactex. To rotate the PDF document.pdf 90 degrees anticlockwise, use:



            pdf90 document.pdf


            This will create a file document-rotated90.pdf. See also this answer.






            share|improve this answer





















            • Installing MacTeX to rotate a PDF may be an overkill...
              – Alexey
              Nov 21 at 16:53















            up vote
            1
            down vote










            up vote
            1
            down vote









            This can be achieved by using pdf90, pdf180 or pdf270, which are all part of pdfjam. The latter comes with mactex. You can install it with homebrew cask, by brew cask install mactex. To rotate the PDF document.pdf 90 degrees anticlockwise, use:



            pdf90 document.pdf


            This will create a file document-rotated90.pdf. See also this answer.






            share|improve this answer












            This can be achieved by using pdf90, pdf180 or pdf270, which are all part of pdfjam. The latter comes with mactex. You can install it with homebrew cask, by brew cask install mactex. To rotate the PDF document.pdf 90 degrees anticlockwise, use:



            pdf90 document.pdf


            This will create a file document-rotated90.pdf. See also this answer.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 21 at 16:28









            ttq

            411143




            411143












            • Installing MacTeX to rotate a PDF may be an overkill...
              – Alexey
              Nov 21 at 16:53




















            • Installing MacTeX to rotate a PDF may be an overkill...
              – Alexey
              Nov 21 at 16:53


















            Installing MacTeX to rotate a PDF may be an overkill...
            – Alexey
            Nov 21 at 16:53






            Installing MacTeX to rotate a PDF may be an overkill...
            – Alexey
            Nov 21 at 16:53












            up vote
            0
            down vote













            Check out qpdf. From the manual:




            --rotate=[+|-]angle[:page-range]



            Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.4, “Page
            Selection Options”. If the page range is omitted, the rotation is
            applied to all pages. The angle portion of the parameter may be either
            90, 180, or 270. If preceded by + or -, the angle is added to or
            subtracted from the specified pages' original rotations. Otherwise the
            pages' rotations are set to the exact value. For example, the command
            qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8 would rotate
            pages 2, 4, and 6 90 degrees clockwise from their original rotation
            and force the rotation of pages 7 through 9 to 180 degrees regardless
            of their original rotation, and the command qpdf in.pdf out.pdf
            --rotate=180 would rotate all pages by 180 degrees.







            share|improve this answer

























              up vote
              0
              down vote













              Check out qpdf. From the manual:




              --rotate=[+|-]angle[:page-range]



              Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.4, “Page
              Selection Options”. If the page range is omitted, the rotation is
              applied to all pages. The angle portion of the parameter may be either
              90, 180, or 270. If preceded by + or -, the angle is added to or
              subtracted from the specified pages' original rotations. Otherwise the
              pages' rotations are set to the exact value. For example, the command
              qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8 would rotate
              pages 2, 4, and 6 90 degrees clockwise from their original rotation
              and force the rotation of pages 7 through 9 to 180 degrees regardless
              of their original rotation, and the command qpdf in.pdf out.pdf
              --rotate=180 would rotate all pages by 180 degrees.







              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Check out qpdf. From the manual:




                --rotate=[+|-]angle[:page-range]



                Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.4, “Page
                Selection Options”. If the page range is omitted, the rotation is
                applied to all pages. The angle portion of the parameter may be either
                90, 180, or 270. If preceded by + or -, the angle is added to or
                subtracted from the specified pages' original rotations. Otherwise the
                pages' rotations are set to the exact value. For example, the command
                qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8 would rotate
                pages 2, 4, and 6 90 degrees clockwise from their original rotation
                and force the rotation of pages 7 through 9 to 180 degrees regardless
                of their original rotation, and the command qpdf in.pdf out.pdf
                --rotate=180 would rotate all pages by 180 degrees.







                share|improve this answer












                Check out qpdf. From the manual:




                --rotate=[+|-]angle[:page-range]



                Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.4, “Page
                Selection Options”. If the page range is omitted, the rotation is
                applied to all pages. The angle portion of the parameter may be either
                90, 180, or 270. If preceded by + or -, the angle is added to or
                subtracted from the specified pages' original rotations. Otherwise the
                pages' rotations are set to the exact value. For example, the command
                qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8 would rotate
                pages 2, 4, and 6 90 degrees clockwise from their original rotation
                and force the rotation of pages 7 through 9 to 180 degrees regardless
                of their original rotation, and the command qpdf in.pdf out.pdf
                --rotate=180 would rotate all pages by 180 degrees.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 at 16:56









                Alexey

                533517




                533517






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1026213%2frotate-all-pages-of-pdf-from-command-line-in-os-x%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

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    Origin of the phrase “under your belt”?