Date: Tue, 5 May 2020 23:19:52 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org Cc: Polytropon <freebsd@edvax.de> Subject: Re: Brother HL-L2340D printer and lpd? Message-ID: <20200505161952.GA34844@admin.sibptus.ru> In-Reply-To: <20200503171259.GA48627@admin.sibptus.ru> References: <20200503171259.GA48627@admin.sibptus.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Victor Sudakov wrote: >=20 > 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 this page: https://support.brother.com/g/b/faqend.aspx?c=3Dus&lang=3Den&prod=3Dhll2340= dw_us_eu_as&faqid=3Dfaq00100602_000 I've been able to print PDF files (lpr -P ps mozilla.pdf)=20 on this printer with the following printcap entry: ps|Brother HL-L2340D series PostScript:\ :sh:\ :lp=3D9100@192.168.1.74:\ :if=3D/usr/local/etc/ps2pcl.sh:\ :sd=3D/var/spool/output/lpd2:lf=3D/var/log/lpd-errs: while the ps2pcl.sh looks like this (thanks again to Polytropon): #!/bin/sh #/usr/bin/printf "\033&k2G" || exit 2 /usr/local/bin/gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \ -sDEVICE=3Dhl1250 -sPAPERSIZE=3Da4 -r600x600 \ -sOutputFile=3D- - && exit 0 exit 2 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. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJesZIoAAoJEA2k8lmbXsY0BGAH/09AxDJjuw1yLniR7ksGKWow D9Zqlf1tl/AhQ/O7seqcXwhXFqVw+57MJRpp6s4Bww3J+6kgvWNEb/dsHbj+zZBg fgdf3maGsGpr4TB4SebDZKktyYbcF7ocyHwQEaBTioYEiHLLse0unz39LM0NFr8L anxYBMFYxsUG/9RB1ds4V/bJiE8s/9BGbwZk6CCOxtFMwfRml5tmRBgJQT4S/bGF fTm3nrXB11u9Z7rE6NZ6h8Z4GAjKNlwisXaYei036iAjRYVI2FVqj6s2ThOcx0XM /nopLzf8ATlda9LMXLPP0307IFlQ/1CgZ2VSu7MgxlNihFvCb7pcrv4dLFPM3N8= =J97t -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200505161952.GA34844>