Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2011 08:01:50 +0200
From:      "Kruppa, Peter Ulrich" <ulrich@pukruppa.de>
To:        Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: Printing from Opera
Message-ID:  <4E55E54E.6000307@pukruppa.de>
In-Reply-To: <20110824171956.56654528.freebsd@edvax.de>
References:  <20110824095841.0f614b67.freebsd@edvax.de> <4E54E2C5.2030408@pukruppa.de> <20110824171956.56654528.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, I forgot to include the list -

Am 24.08.2011 17:19, schrieb Polytropon:
> On Wed, 24 Aug 2011 13:38:45 +0200, Kruppa, Peter Ulrich wrote:
>> Opera really does work with Cups - you will see your printer's
>> network name in the printer dialog.
>
> I've installed CUPS and actually _can_ see the printer
> names in the dialog, but no printing takes place.
>
> Test: I loaded google's homepage and pressed Ctrl+P Enter.
>
> 	% lpq
> 	HP_LaserJet_4000_Series is ready and printing
> 	Rank    Owner   Job     File(s)              Total Size
> 	active  poly    20      Google - Opera       419840 bytes
>
> And few seconds later:
>
> 	% lpq
> 	HP_LaserJet_4000_Series is ready
> 	no entries
>
> But nothing appear in the printer. It works from any
> other application, even from command line.
>
> Note that _those_ lp* tools are belonging to CUPS.

Which means - you really do use /usr/local/bin/lp and removed the system's
/usr/bin/lp* stuff?

Just to be sure

Greetings


Peter.


>
>
>> If you really want to use Cups [...]
>
> Want? There's no such thing as wanting in relation to CUPS. :-)
>
>
>
>> [...] you have to set it up manually
>
> Really? It was always advertised as doing everything totally
> automatically.
>
>
>
>> - there isn't any automagic.
>
> It recognized the printer (by scanning the network) correctly
> and did even suggest the proper driver that allows me to
> enable or disable the printer's special functions, such as
> which tray to use, or if to duplex.
>
>
>
>> Can you print from the command-line
>> 	# lpr document.ps
>> ?
>
> Without problems. Even the pre-filters do work, e. g.
>
> 	% lpr bla.c
>
> or even
>
> 	% lpr foo.jpg
>
> CUPS does the preprocessing, the printer shows "JOB PROCESSING",
> loads the paper and prints - just as expected, even like
> without CUPS. :-)
>
> (I've been using that "magic" with apsfilter before which
> uses some pre-filters for various "non-printable" file
> types, and then generates PCL using gs, which also allows
> me to set printer-specific options.)
>
> Oh, and I even wrote my own "PS only" printer filters,
> also using gs, and putting them into /etc/printcap does
> work.
>
> % cat /opt/libexec/ps2pcl-dup.sh
> #!/bin/sh
> printf "\033&k2G" || exit 2
> gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER -sPAPERSIZE=a4
> 	-r600x600 -sDEVICE=ljet4d -dDuplex=true
> 	-sOutputFile=- -&&  exit 0
> exit 2
>
> Corresponding printcap entry:
>
> Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\
>      :rm=192.168.100.100:\
>      :rp=raw:\
>      :lp=:\
>      :if=/opt/libexec/ps2pcl-dup.sh:\
>      :sd=/var/spool/lpd/Laserjet:\
>      :lf=/var/spool/lpd/Laserjet/log:\
>      :af=/var/spool/lpd/Laserjet/acct:\
>      :mx#0:\
>      :sh:
>
> Of course in _this_ case print data has to be in PS format,
> but that's no problem as it is the default output format
> by all the programs that intend to print.
>
>
>

-- 

Peter Ulrich Kruppa
Wuppertal
Germany



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E55E54E.6000307>