Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.postscript > #115

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

From Helge Blischke <h.blischke@acm.org>
Newsgroups comp.lang.postscript
Subject Re: From PS to PCL via Ghostscript - Printer uses wrong paper tray?!
Followup-To comp.lang.postscript
Date 2011-04-11 18:45 +0200
Message-ID <90gpghFgicU1@mid.individual.net> (permalink)
References <ad84d23d-d0cc-44de-b889-88c64e6285f0@k11g2000yqc.googlegroups.com>

Followups directed to: comp.lang.postscript

Show all headers | View raw


Felix wrote:

> 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

From what I learned from the Ghostscript documentation (9.01/9.02), it is 
necessary to specify the paper size using the printer setup dialog in 
advance.
Looking through the appropriate sources, there is no output of PJL 
statements in any of the mswinpr2 components.

Helge

Back to comp.lang.postscript | Previous | NextPrevious in thread | Find similar


Thread

From PS to PCL via Ghostscript - Printer uses wrong paper tray?! Felix <schuller.felix@googlemail.com> - 2011-04-11 01:50 -0700
  Re: From PS to PCL via Ghostscript - Printer uses wrong paper tray?! Helge Blischke <h.blischke@acm.org> - 2011-04-11 18:45 +0200

csiph-web