Re: [DNG] Printing -- now works.

2016-04-21 Thread Rainer Weikusat
Gregory Nowak  writes:
> On Wed, Apr 20, 2016 at 06:27:26PM -0400, Hendrik Boom wrote:
>> I'm using the driver from Brother, and lpr from lprng.  I found the 
>> lprng-doc package.  I suppose the next thing is to read it,
>
> While I haven't used a brother printer, I do seem to have a
> recollection of doing lpr file.pdf, and having the pdf print out
> normally. If ghostscript supports your printer, lprng can be setup to
> pipe through ghostscript.

The Brother driver is really an input filter, usually at shell script,
which is supposed to take care of this autoamtically. Judging from a
quick look, mine roughly converts the input to PostScript via a2ps and
that to PCL by feeding it into a Brother-provided program.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Printing -- now works.

2016-04-21 Thread Rainer Weikusat
Hendrik Boom  writes:
> On Wed, Apr 20, 2016 at 05:43:10PM +0100, Rainer Weikusat wrote:
>> Hendrik Boom  writes:
>> 
>> [Brother printer]
>> 
>> > I did manage to get the printer going.  I should have mentionned long 
>> > ago what the final problem was.
>> >
>> > It turns out I was trying to print a pdf to a postscript printer.  I 
>> > thought that pdf was a specialized form of postscript, the way inkscape 
>> > files are a specialized form of svg.  Turns out that was  completely 
>> > wrong.
>> 
>> This suggests that something is wrong with the driver/ input filter
>> setup. That's supposed to convert the input file to something the
>> printer understands. I can print PostScript, PDF and a number of kinds
>> of files just fine.
>
> I'm using the driver from Brother, and lpr from lprng.  I found the 
> lprng-doc package.  I suppose the next thing is to read it,

My (working) /etc/printcap looks like this:

DCP7010:\
:mx=0:\
:sd=/var/spool/lpd/DCP7010:\
:sh:\
:lp=/dev/usb/lp0:\
:if=/usr/local/Brother/lpd/filterDCP7010:

if= is the input filter. That's the program (usually a shell script
invoking other programs) supposed to convert the input data to something
the printer understands. A quick test to see if this works as desired
would be to redirect printing to a file.

1. Change lp= line

[rw@doppelsaurus]/tmp#sudo ed /etc/printcap < /:lp=/s/=.*:/=\/tmp\/pr:
> wq
> TT
149
:lp=/tmp/pr:\
149

2. Create output file

touch /tmp/pr
sudo chown daemon.daemon /tmp/pr

3. Tell lpd to re-read the configuration

sudo lpc reread

Afterwards, an attempt to print a PDF (via lpr) will write the
pre-processed data to /tmp/pr. The lpq command can be used to check the
status of the print jop while this is happening.

According to

http://support.brother.com/g/b/spec.aspx?c=us=en=hl3170cdw_all

the printer you're using supports both PostScript3 and PCL6. Guesses at
the cause of the printing failure could be "filter produces PCL and
printer wants PostScript" or "filter doesn't produce output".
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Printing -- now works.

2016-04-20 Thread Gregory Nowak
On Wed, Apr 20, 2016 at 06:27:26PM -0400, Hendrik Boom wrote:
> I'm using the driver from Brother, and lpr from lprng.  I found the 
> lprng-doc package.  I suppose the next thing is to read it,

While I haven't used a brother printer, I do seem to have a
recollection of doing lpr file.pdf, and having the pdf print out
normally. If ghostscript supports your printer, lprng can be setup to
pipe through ghostscript. I believe there is also foomatic support for
lprng. 

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Printing -- now works.

2016-04-20 Thread Rainer Weikusat
Hendrik Boom  writes:

[Brother printer]

> I did manage to get the printer going.  I should have mentionned long 
> ago what the final problem was.
>
> It turns out I was trying to print a pdf to a postscript printer.  I 
> thought that pdf was a specialized form of postscript, the way inkscape 
> files are a specialized form of svg.  Turns out that was  completely 
> wrong.

This suggests that something is wrong with the driver/ input filter
setup. That's supposed to convert the input file to something the
printer understands. I can print PostScript, PDF and a number of kinds
of files just fine.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng