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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:08:12+00:00 2026-06-06T11:08:12+00:00

Am having issues with printing different sized PDF’s using GhostScript (V9.05). The PDF in

  • 0

Am having issues with printing different sized PDF’s using GhostScript (V9.05).

The PDF in question is A3 landscape however when printing using ghost script using the following command line arguments the result is printed in A4 portrait and cuts off half of the content.

Commad line arguments:

“-sDEVICE=mswinpr2 -dPDFFitPage -dPrinted=false -dNoCancel -dBATCH -dNOPAUSE -sOutputFile=”\spool\HP LaserJet P2050 Series PCL6 (A4)” “C:\Users\dmeggs\AppData\Local\Temp\iPlan_Printing_k4gjaoip.pdf””

I’ve tried many combinations of parameters, most seem to have no effect. Ideally I want the printer to print the PDF based on the PDF properties as this will be used to print A4, A3, portrait and landscape documents.

Thanks
Dan

  • 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-06-06T11:08:15+00:00Added an answer on June 6, 2026 at 11:08 am

    Adding as a new answer as its too big for a comment.

    If the output from pswrite and epswrite work then the printer is a PostScript printer.

    Pdfwrite produces PDF files, so presumably you don’t want to do that, given the input is a PDF file 🙂 Some PostScript printers can in fact print PDF files too, but this is comparatively unusual.

    Rather than use psweite (or epswrite) I would suggest that you use ps2write (which will produce PostScript language level 2 as output) and send the resulting file to the printer.

    In an ideal world your printer would then do media selection based on the media request in the PostScript program), but not all printers manage this. In part because printers don’t always know which media is in which tray, if multiple media are available.

    However, you can then write reasonably simple PostScript code which you can prepend to the file which will allow you to determine the requested page size. Assuming you know how to control tray/media selection in your printer you can have the PostScritp program do that for you.

    Unfortunately I can’t give you much detail on how to do this, as it depends a great deal on the specific printer.

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

Sidebar

Related Questions

I am having some issues printing out the subarray homemain=>image This is my JSON
I am having issues with loading external javascript using JQuery. Every time when I
I asked a question earlier on this same project but I'm still having issues
I am having some issues implementing RestKit/CoreData with my application. Using the RKTwitterCoreData example
Having issues referencing $(this) from within a the nested ajax 'success' function... I know
Still having issues with this problem. Please help if you can. So I am
Im having issues getting this to work, maybe its not even possible? I have
Im having issues vertically positioning text inside of a text input field in Firefox.
I am having issues with trying to convert an UTF-8 string to unicode. I
I'm having issues with a bit of code that I am writing in C#.

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.