Printing from Opera
Kruppa, Peter Ulrich
ulrich at pukruppa.de
Thu Aug 25 05:57:47 UTC 2011
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
Just to be sure
>> 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
>> - 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
> % cat /opt/libexec/ps2pcl-dup.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:
> 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
More information about the freebsd-questions