lpr / ghostscript problem: blank page at end of each print job [solved]

Peter Ulrich Kruppa ulrich at pukruppa.de
Sun May 4 20:35:56 UTC 2014

On 05/04/14 21:35, Warren Block wrote:
> On Sun, 4 May 2014, Peter Ulrich Kruppa wrote:
>> Hi,
>> I am playing around with a host based Windows printer (Brother
>> HL-2135W), which seems to understand some PCL .
>> Converting .ps or .pdf files with ghostscript and printing the result
>> via lpr works so far.
> What is the full gs command?
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html#printing-lpd-filters-ps2pcl
Thanks for the hint - I just typed this /usr/local/libexec/ps2pcl

/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sPAPERSIZE=a4 -dBATCH
-sDEVICE=hl1250 -s OutputFile=- -

(all in one line) chmoded it to 555 and wrote into my /etc/printcap


restarted /etc/rc.d/lpd and now no additional blank page is created
anymore as before, when I used gs manually.

>> Problem is, there always will be a blank page printed out at the end of
>> a print job.
>> I tried to suppress this with lpr -h option, but that wouldn't help.
>> Does anyone have any good idea?
> Does the extra page print if the file is dumped directly to the printer?
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-direct.html
> Do plain text files print correctly?  Is there an input filter in the
> printcap entry for the printer, and if so, what does the filter do?
No, I have to run enscript to create a ps before.

Thanks and greetings


More information about the freebsd-questions mailing list