Brother HL-L2340D printer and lpd?
vas at sibptus.ru
Tue May 5 16:19:55 UTC 2020
Victor Sudakov wrote:
> I'm trying to use a Brother HL-L2340D printer as a simple networked
> line printer with lpd. I've successfully used HP and Canon printers like
> that with a simple printcap like this:
The story continues with some good news.
Thanks to much insight and help from Polytropon (off list also), and
I've been able to print PDF files (lpr -P ps mozilla.pdf)
on this printer with the following printcap entry:
ps|Brother HL-L2340D series PostScript:\
:lp=9100 at 192.168.1.74:\
while the ps2pcl.sh looks like this (thanks again to Polytropon):
#/usr/bin/printf "\033&k2G" || exit 2
/usr/local/bin/gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \
-sDEVICE=hl1250 -sPAPERSIZE=a4 -r600x600 \
-sOutputFile=- - && exit 0
So GhostScript's "hl1250" driver works wonders, I even see Cyrillic
text in the printed PDF.
Now two questions are left:
1. How the heck do I print text files with this setup? Should I convert
them to PostScript first, and how? UTF-8 Cyrillic support is crucial.
2. How do I convince Mozilla Firefox that I now have a PostScript
printer and it can print directly to it, not just to a PDF file? It does
not seem to care for /etc/printcap.
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 455 bytes
Desc: not available
More information about the freebsd-questions