Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 866795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:52:06+00:00 2026-05-15T09:52:06+00:00

I’m looking for a solution that will allow me to do the following to

  • 0

I’m looking for a solution that will allow me to do the following to PDF documents:

  1. Insert PDF pages into existing PDF documents
  2. Delete PDF pages from existing PDF documents
  3. Change the orientation of certain PDF pages

Any solutions I should be looking at? My output needs to be PDF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:52:06+00:00Added an answer on May 15, 2026 at 9:52 am

    Since you found out already…
    * …how to separate multipage PDF documents into singlepage files, and
    * …how to re-combine multiple PDF documents into a single one
    using Ghostscript, here is how to rotate pages. However, this does not work reliably, because it depends on Ghostscript’s ability to discover the main flow of text orientation on each page:
    * -dAutoRotatePages=/None — retains orientation of each page;
    * -dAutoRotatePages=/All — rotates all pages (or none) depending on a kind of “majority decision”;
    * -dAutoRotatePages=/PageByPage — auto-rotates pages individually.

    Add one of these to the Ghostscript commandline you’re using.

    If there is no text on a page (or if there is an automatic page rotation set to /None), then Ghostscript uses the setpagedevice settings. You can pass such setpagedevice parameters on the Ghostscript commandline using the -c switch like this:
    * -c "<</Orientation 3>> setpagedevice" — sets landscape orientation;
    * -c "<</Orientation 0>> setpagedevice" — sets portrait orientation;
    * -c "<</Orientation 2>> setpagedevice" — sets upside down orientation;
    * -c "<</Orientation 1>> setpagedevice" — sets seascape orientation.

    Probably you need to set the orientation for each page when extracting the pages. I don’t think it would work when merging them back to the unified document (I have never tested this).

    However, I’d also recommend to you that you have a look at pdftk (which is also available for Windows). It is a commandline tool that can extract pages from PDFs, merge multiple PDF files, rotate pages, and much more. Easier to use than Ghostscript for your stated purposes, and much faster as well. See here for details: http://www.accesspdf.com/pdftk/ .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.