Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2014 13:40:30 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: printcap configuration problem
Message-ID:  <alpine.BSF.2.11.1408031322250.81094@wonkity.com>
In-Reply-To: <20140803083513.47e21f3b@rsbsd.rsb>
References:  <1405676044178-5929730.post@n5.nabble.com> <alpine.BSF.2.11.1407180554080.77290@wonkity.com> <53C919E0.6070008@bananmonarki.se> <alpine.BSF.2.11.1407180725500.77290@wonkity.com> <20140718183958.1864052a@rsbsd.rsb> <20140727221419.35efb9b0@morena.maps.net> <1406966714419-5934110.post@n5.nabble.com> <1406986762673-5934162.post@n5.nabble.com> <alpine.BSF.2.11.1408021027580.67716@wonkity.com> <20140803083513.47e21f3b@rsbsd.rsb>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Aug 2014, Beeblebrox wrote:

>> Both cases are for use with a printer that understands PostScript
>> natively.  A plain LaserJet 2100 does not,
> Mine does, it's the 2100tn model, has native ps level-II
> http://people.virginia.edu/~cavcomp2/printers/hp/2100/2100.htm
>
>> Sorry, I don't understand the question.
>
> Well, my first question was: Why under the current filter setting does 
> lpd scrape or cut 4 lines from the top? I'm able to get the hard copy 
> the way I want it to look by increasing the top margin by 4 lines, 
> save it as a ps file, then lpr the file from command line.

lpd does not mess with the input file, although the filter might.  I 
suspect that this just means you need to supply some margin settings for 
enscript in the psif filter.  See enscript(1).

> The ghostscript comment was referring to previous discussion - sorry 
> for the confusion: If I want to print in r: 300 x 300, the only way 
> that's going to happen is by sending it through ghostscript, if I 
> understand correctly?

No, that's not necessary.  PostScript can be told what resolution to 
use.  A filter would have to append that to the start of the PS program, 
similar to the way duplex can be set.  See this thread for an example:
https://forums.freebsd.org/viewtopic.php?&t=40651

I have some additional filters on my list of things to add to the 
Handbook, but no idea when I can work on them.

> How could I modify psif so that "lpr -Php2100 -r300 somefile.ps" would 
> result in 1. check if ps 2. adjust for one of available resolution 
> options (300 OR 600).

-r is already used by lpr.  Actually, I have not experimented with 
passing through options that way, and don't know if it can be done. 
I'd just define two printers, one for 300DPI and one for 600DPI.

The header code is probably going to be
<</HWResolution[600 600]>> setpagedevice
or
<</HWResolution[300 300]>> setpagedevice

That might be different on a printer as old as the LJ2100.  It can be 
tested in plain PS files sent directly to the printer.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1408031322250.81094>