Date: Sat, 01 Apr 2006 16:41:25 -0800 From: "Jin Guojun [VFFS]" <j_guojun@lbl.gov> To: Carlos Silva <security@yourdot-mail.com> Cc: freebsd-hardware@freebsd.org Subject: Re: cups Message-ID: <442F1DB5.8090003@lbl.gov> In-Reply-To: <442F1698.5050500@yourdot-mail.com> References: <442DFEE5.4040407@yourdot-mail.com> <442E82F2.8040702@bah.homeip.net> <442EACAF.4010606@yourdot-mail.com> <442EAEF1.5050307@bah.homeip.net> <442EB292.1000007@yourdot-mail.com> <442F15C6.4070409@lbl.gov> <442F1698.5050500@yourdot-mail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This helps a little bit, but not every printing jobs. If you just need to print text to this printer via CUPS, you do not need any filter or (may not need a pdd either, but I need to verify it). By default, CUPS convert text to postscript, then to printer coded file via a proper pdd filter. That you got errors may be because your printer probably received a postscript coded file or even further converted to some common HP coded file, which may not suitable for every HP printer. To remove a text filter, either change /usr/local/etc/cups/mime.convs something like application/vnd.cups-text 0 texttops to application/vnd.cups-text 0 - "-" means do nothing; or change /usr/local/libexec/cups/filter/texttops mv texttops text2ps echo "cat -" > texttops chmod +x texttops If this works, this only fixes your text print problem. You may still not be able to print other files, such graphics or postscript files. You need to find a proper filter for this printer, maybe try it via "gs -sDEVICE=ijs --sOutputFile=/tmp/test A_POSTSCRIPT_FILE" or other filters (in -sDEVICE= line) to convert a postscript file to /tmp/test file, and try to print /tmp/test file to your printer via lpr command. If you can find a working filter in gs, then find a match filter in CUPS. Then reverse the change made above back, and install proper pdd for CUPS. Best regards, -Jin Carlos Silva wrote: > hi, > > I have printed a plain text file with lpr.. > And, as I said I have a ppd from hpijs, footmatic, etc packages... > > Best Regards, > > Carlos Silva, CSilva > Web: http://www.csilva.org/ > > > > Jin Guojun [VFFS] escreveu: > >> Carlos Silva wrote: >> >>> No, but i'll try this. >>> >>> I don't understand why lpr prints and cups not :( >> >> >> It is not clear how you printed via lpr. Unless you have a postscript >> (with .ps files) or plain text (for text only) printer, lpr will not >> print >> correctly except printing some garbages. >> >> If you used gs to convert .ps files to hp 1115 coded files, then you >> may use "lpr" command to print. Is this the way you printed? >> If so, the DeviceFILTER you used in gs option >> -sDEVICE=DeviceFILTER >> indicates the printer driver you need to use for CUPS. If CUPS has >> no related filter, then you need to write a filter/PDD file to invoke >> gs to do the conversion job for CUPS to print. >> It needs some work, but it is not too bad. >> >> I have a MFC 420n printer, I could not find a filter in either gs >> or CUPS, so I cannot use this printer under Unix/FreeBSD via >> lpr or CUPS :-) >> >> Since you said that you can print via lpr, then you should be able >> to print via CUPS. Just need a more clear picture on how you printed >> by using lpr. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442F1DB5.8090003>