bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From PS to PCL via Ghostscript - Printer uses wrong paper tray?!


From: Felix
Subject: From PS to PCL via Ghostscript - Printer uses wrong paper tray?!
Date: Mon, 11 Apr 2011 02:11:44 -0700 (PDT)
User-agent: G2/1.0

G’day everyone!

I installed a virtual Postscript printer and use Ghostscript to
convert Postscript files to PCL and send the PCL files to a real
printer to print Postscript files on a non Postscript printer.
To realize that, I used this tutorial: 
http://www.stat.tamu.edu/~henrik/GSPSprinter/GSPSprinter.html

I get the Postscript file from another software – a scan software. In
this software I am able to choose between DIN A4 and DIN A3.
The Postscript file includes the correct page size (in the line below
its DIN A3):
<</DeferredMediaSelection true /PageSize [842 1190] /ImagingBBox
null>> setpagedevice

In the Ghostscript output, the PCL file, I can’t find that entry. The
only thing I find is:
@PJL SET PAPER=LETTER

But that would be the wrong paper size. The print is OK, but the
printer always uses tray no. 1. That’s where the A4 paper is stored.
But I need to print on DIN A3 paper as well. And I think that doesn’t
work because the page size isn’t correct.

Or would that conclusion be wrong? Is there any way to get the printer
to chose the right tray?

Printer: HP LaserJet 5000

Preference file for Ghostscript:
-Ic:\gs\ggs9.01\lib;c:\gs\fonts
-sDEVICE=mswinpr2
-dNoCancel
-dNOPAUSE
-dSAFER

In that preference file I tried “sPAPERSIZE” with a3, a4, auto and
even deleted it completely. None of it worked fine.
I also tried to change preferences of the printer in the printer
itself and the PCL5e driver of the printer. Nothing works...

My questions are:
Does anyone have an idea how I could get the printer to chose the
right tray?
And why does Ghostscript convert from "A3" to "letter"?
Is there a way to catch the Postscript file, check if it's A3 or A4,
usw the right paper size and print? But even if I write -sPAPERSIZE =
a3 it doesn't work proper. The image is resized correctly but the
printer still uses tray no. 1 ...

Best regards,
Felix


reply via email to

[Prev in Thread] Current Thread [Next in Thread]