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 832877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:25:54+00:00 2026-05-15T04:25:54+00:00

am using ghostscript to create pdf file from postscript file. My PS file, doesn’t

  • 0

am using ghostscript to create pdf file from postscript file. My PS file, doesn’t have orientation instructions, so when I want to create landscape pdf file, I’m using ghostscript to rotate the page. The problem is, that ghostscript rotates only the first page, and when my pdf file is more than 1 page, the others, are not rotated correctly. Here is the command I’m using:

cat $psinput | gs -sPAPERSIZE=a4 -sDEVICE=pdfwrite -sOuputFile="/tmp/pdf" \
        -dAutoRotatePages="/None" -c "<< /Orientation 3 >> setpagedevice" \
        90 rotate 0 -595 translate -dNOPAUSE -dEPSCrop  -f - -c -quit

Does anybody have an idea how to correct this?

  • 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-15T04:25:55+00:00Added an answer on May 15, 2026 at 4:25 am

    Without seeing your actual $psinput it is difficult to give definite advice. Your $psinput, coming via stdin to Ghostscript, could contain multiple PS files… Have you tried playing with one of these options

    • -dOrient1=true
    • -dOrient1=false

    in your commandline? Also, it looks to me like you should put your 90 rotate 0 -595 translate command inside the quotes going with -c, and then position the input (-f –) to the very end of processing like so:

    • -c "<</Orientation 3>> setpagedevice 90 rotate 0 -595 translate" -f - -c quit

    Also have you tried to use

    • -c ".setpdfwrite <<//AutoRotatePages /PageByPage>> setdistillerparams" or
    • -c ".setpdfwrite <<//AutoRotatePages /All>> setdistillerparams" or
    • -c ".setpdfwrite <<//AutoRotatePages /None>> setdistillerparams"

    on your commandline (with or without your original rotating code)?

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

Sidebar

Related Questions

I have been successful with extracting text from a PDF file using GhostScript along
I have a base pdf file, and want to update the title into Chinese
Looking for solution to extract content from a PDF file (using console tool or
I'm using Ghostscript library API (wrapping from C#) to print PDF documents from my
I get this error when trying to print postscript created from a pdf using
I'm using ghostscript to make jpeg images from PDF. It works good exept bold
Ghostscript merge of pdf's is causing orientation to flip I'm using a similar method
Can I convert a pdf to pcl file with ghostscript? I'm using Ghostscript 9.01
In my application I want to merge PDF's with Ghostscript using the windows console.
Am having issues with printing different sized PDF's using GhostScript (V9.05). The PDF in

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.