Hello,
It is my first post and I'm not sure this is the right place to post my question, so please be indulgent. Also, I hope I'm following the forum's rules and guidelines properly.
I have FreeBSD 9.2-RELEASE installed, my ports tree is up to date, so are installed ports. Everything was installed from ports, not (PKGNG) packages. I have installed print/apsfilter and I'm trying to get my postscript network printer (Brother HL-5250DN) to work. I have read many documents, including the Handbook and Warren Block's article.
So far I can:
Opening files loreipsum.abw.ps and loreipsum.gs9.ps with emacs I can see they differ a lot, the former being generated by graphics/cairo (which is used by Abiword) and the later by ghostscript9 as said before. But the file command gives the same result for both:
At this point I'm stuck because calling ghostscript9 is supposed to be the right thing to do by the smart filter apsfilter, so the whole process should be straightforward. Or am I missing something obvious here? I copy the relevant files /etc/printcap and apsfilterrc below.
As a side note, I can't get LPD and/or apsfilter to make use of the .PPD file which comes with my printer, so that I can benefit from all the functionality it provides.
Any help will be very appreciated. Many thanks in advance.
Please note that hl5250dn is the name of the spool and also the DNS name of my printer (hl5250dn.domain.lan). I can ping and dig it without any problem. Obviously using its IP address in /etc/printcap (i.e. rm=9100@192.168.xxx.yyy) doesn't solve my issue.
It is my first post and I'm not sure this is the right place to post my question, so please be indulgent. Also, I hope I'm following the forum's rules and guidelines properly.
I have FreeBSD 9.2-RELEASE installed, my ports tree is up to date, so are installed ports. Everything was installed from ports, not (PKGNG) packages. I have installed print/apsfilter and I'm trying to get my postscript network printer (Brother HL-5250DN) to work. I have read many documents, including the Handbook and Warren Block's article.
So far I can:
- print a file from a word processor (Abiword)
- print a .txt (ASCII) file from the command line with
$ lpr loreipsum.txt - print a .ps (PostScript) file from the command line with
$ lpr loreipsum.abw.psif the file was created by Abiword (Edit ->Save As [postscript *.ps])
-
$ lpr loreipsum.abw.pdf, the loreipsum.abw.pdf file being initially created by Abiword (Edit ->Save As [portable document format *.pdf]) -
$ pdf2ps loreipsum.abw.pdf loreipsum.gs9.ps, then$ lpr loreipsum.gs9.ps
Opening files loreipsum.abw.ps and loreipsum.gs9.ps with emacs I can see they differ a lot, the former being generated by graphics/cairo (which is used by Abiword) and the later by ghostscript9 as said before. But the file command gives the same result for both:
Code:
$ file loreipsum.gs9.ps
loreipsum.gs9.ps: PostScript document text conforming DSC level 3.0, Level 2
$ file loreipsum.abw.ps
loreipsum.abw.ps: PostScript document text conforming DSC level 3.0, Level 2
As a side note, I can't get LPD and/or apsfilter to make use of the .PPD file which comes with my printer, so that I can benefit from all the functionality it provides.
Any help will be very appreciated. Many thanks in advance.
Code:
# APS1_BEGIN:hl5250dn
lp|rlp|hl5250dn|Brother HL-5250DN:\
:lp=:sd=/var/spool/lpd/hl5250dn:\
:rm=hl5250dn:\
:rp=hl5250dn:\
:lf=/var/log/lpd-hl5250dn.log:\
:af=/var/spool/lpd/hl5250dn/acct:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sh:mx#0:
# APS1_END - don't delete this
Code:
PRINTER='PS'
PAPERSIZE='a4'
METHOD='auto'
QUALITY='medium'
COLOR='full'
RESOLUTION='600x600'
INTERFACE='network'
Please note that hl5250dn is the name of the spool and also the DNS name of my printer (hl5250dn.domain.lan). I can ping and dig it without any problem. Obviously using its IP address in /etc/printcap (i.e. rm=9100@192.168.xxx.yyy) doesn't solve my issue.