Re: printing to Kyocera FS-1030D
On Wed, 3 Aug 2011 13:22:51 -0500 Ryan Coleman edi...@d3photography.com wrote: Screw off. Top posting is actually a default in the mail software community. And I will always do it. Thanks for the warning. More annoying: Extra spaces and not removing the cruff from the bottom of emails. And condescending asshats. Even more annoying: people who respond rudely to a politely-worded reminder re: basic netiquette. Fare thee well. On Aug 3, 2011, at 1:08 PM, Robert Bonomi wrote: Pierre, please do not 'top post' replies -- it makes the 'logic' of the message hard to follow, to wit: [snip] -- Conrad J. Sabatier conr...@cox.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On 05/08/2011 01:58, Warren Block wrote: On Thu, 4 Aug 2011, Roland Smith wrote: There are several possible drivers you could use; pcl3 pxlmono pxlcolor. The gutenprint (a.k.a. gimp-print) driver also supports your printer directly. ljet4 is the PCL5 driver, and anything with PCL6 is supposed to also support PCL5. I'd suggest trying both ljet4 and pxlmono or pxlcolor and going with whichever is faster. However, I'd recommend that you take the time and install and configure CUPS. If CUPS is desired, sure. For just plain printing, lpr/lpd is often easier to set up. http://www.wonkity.com/~wblock/docs/html/lpdprinting.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Thanks everyone for your suggestions and sorry not to reply before, I have limited access to this printer. Replying here to everyone who responded with ideas... I tried pxlmono, ljet4 and pcl3 with this /etc/printcap lp|local line printer|Kyocera:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/if-simpleps: this filter #!/bin/sh #printf \033k2G || exit 2 /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=pxlmono\ -sOutputFile=- - exit 0 exit 2 and this command # lpr postscripttest.txt postscripttest.txt contains %!PS %100 100 moveto 300 300 lineto stroke %310 310 moveto /Helvetica findfont 12 scalefont setfont %( Is this thing working? ) show %showpage With all three drivers I got nothing out of the printer and nothing in lpd-errs. I installed some Kyocera software on a Windows computer and tried to change the emulation with it. I succeeded in setting it to have no default emulation but not to be set it to KPDL (the Kyocera version of PostScript). I rang Kyocera UK help line and they were very approachable (refreshing these days). They suggested I email and ask how to set the default emulation which I have done. It seems the printer normally receives some code as part of the print job which sets it to PS or whatever just for this job. If I could find out this code maybe I could write it into a filter. The printer is normally plugged into a Mac and I've found a utility which is supposed to change the default emulation. I hope to ask the printer owner to try it. I'm going to leave this now (I'm away for a few days) till I hear back from Kyocera and/or manage to get the default emulation set to KPDL. I did also try ijs and hpijs and that might still be worth pursuing but I will reply separately to Polytropons post. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On Fri, 5 Aug 2011, Chris Whitehouse wrote: It seems the printer normally receives some code as part of the print job which sets it to PS or whatever just for this job. If I could find out this code maybe I could write it into a filter. The HP equivalent is PJL. Some searching suggests the FS-1030D supports PJL. HP printers also have an automatic mode, which looks at the first few characters of the print job and usually selects the right PDL. That might be an option with the Kyocera also. Here's a lightly-tested filter: #!/bin/sh # filter to wrap PJL commands around a PostScript file # WB 20110805 # send PJL header to switch to PostScript /usr/bin/printf \033%%-12345X@PJL ENTER LANGUAGE = POSTSCRIPT\n # send the PostScript file /bin/cat # end of job /usr/bin/printf \033%%-12345X ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On Wed, Aug 03, 2011 at 05:41:44PM +0100, Chris Whitehouse wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) That is a pity. Just so you know, if you'd be able to switch it to PostScript (of which it seems capable) you'd be more or less done. Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. Yes. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? There are several possible drivers you could use; pcl3 pxlmono pxlcolor. The gutenprint (a.k.a. gimp-print) driver also supports your printer directly. I would start with the pcl3 driver if you want to go with the standard lpd. However, I'd recommend that you take the time and install and configure CUPS. I'm using 8.1-RELEASE, openoffice.org-3.2.1, ghostscript8-8.71_6 Do you know that ghostscript9 is in ports? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpAq4IVK3KlX.pgp Description: PGP signature
Re: printing to Kyocera FS-1030D
On Thu, 4 Aug 2011, Roland Smith wrote: There are several possible drivers you could use; pcl3 pxlmono pxlcolor. The gutenprint (a.k.a. gimp-print) driver also supports your printer directly. ljet4 is the PCL5 driver, and anything with PCL6 is supposed to also support PCL5. I'd suggest trying both ljet4 and pxlmono or pxlcolor and going with whichever is faster. However, I'd recommend that you take the time and install and configure CUPS. If CUPS is desired, sure. For just plain printing, lpr/lpd is often easier to set up. http://www.wonkity.com/~wblock/docs/html/lpdprinting.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
printing to Kyocera FS-1030D
Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? I'm using 8.1-RELEASE, openoffice.org-3.2.1, ghostscript8-8.71_6 thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
Hi, I would install CUPS and use the PPD file recommended on openprinting.org (http://www.openprinting.org/printer/Kyocera/Kyocera-FS-1030D). Cheers, Pierre-Luc On Wed, Aug 3, 2011 at 12:41 PM, Chris Whitehouse cwhi...@onetel.com wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? I'm using 8.1-RELEASE, openoffice.org-3.2.1, ghostscript8-8.71_6 thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
From owner-freebsd-questi...@freebsd.org Wed Aug 3 11:42:44 2011 Date: Wed, 03 Aug 2011 17:41:44 +0100 From: Chris Whitehouse cwhi...@onetel.com To: User Questions freebsd-questions@freebsd.org Subject: printing to Kyocera FS-1030D Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. Conclusive evidence the printer is _not_ enabled for Postscript. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) _That_ does explain the observed behavior, perfectly. :) Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. Precisely correct. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), Correct. specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. Unsurprising. since it _does_ understand PS, _if_ you can set it that way. :) You -don't- need a driver that is specific to that printer, just one that will output the PCL language thae the printer understands. So either what should I set Device to, or how do I get ghostscript to know about this printer? I don't think there is a 'generic' PCL driver, but one of the 'HP laserjet' drivers _should_ do the job. Pick one thqt corresponds to a 'more-or-less recent' model. I can't give specific advice, as I don't have ghostscript installed on my FreeBSD server. (it's remote and I never actually print from it.) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On Wed, 03 Aug 2011 17:41:44 +0100 Chris Whitehouse cwhi...@onetel.com wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I've Kyocera FS-920 and recommend printing via CUPS by using *.PPD driver. Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: printing to Kyocera FS-1030D
Pierre, please do not 'top post' replies -- it makes the 'logic' of the message hard to follow, to wit: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? See also _RFC 1855_ for the closest thing to an 'official' stance on the matter. Date: Wed, 3 Aug 2011 13:10:03 -0400 From: Pierre-Luc Drouin pldro...@pldrouin.net To: Chris Whitehouse cwhi...@onetel.com Cc: User Questions freebsd-questions@freebsd.org Subject: Re: printing to Kyocera FS-1030D Hi, I would install CUPS and use the PPD file recommended on openprinting.org (http://www.openprinting.org/printer/Kyocera/Kyocera-FS-1030D). This is -guaranteed- to be *ineffective*. Apparently you missed the mention in the OP's original message that the printer is running in 'PCL' emulation mode, and that he _cannot_ change that. Cheers, Pierre-Luc On Wed, Aug 3, 2011 at 12:41 PM, Chris Whitehouse cwhi...@onetel.com wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? I'm using 8.1-RELEASE, openoffice.org-3.2.1, ghostscript8-8.71_6 thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
El día Wednesday, August 03, 2011 a las 01:08:01PM -0500, Robert Bonomi escribió: Pierre, please do not 'top post' replies -- it makes the 'logic' of the message hard to follow, to wit: Yes, please do not top post; Apparently you missed the mention in the OP's original message that the printer is running in 'PCL' emulation mode, and that he _cannot_ change that. So, what? If you can only print PCL, just raster the Postscript file with ghostscript to PCL (using CUPS, this also can be done on the fly); # cat ps-file |lpr -Plp To the OP: You won the todays Useless Use of Cat Award :-) The same would do: lpr -Plp ps-file or lpr -Plp ps-file :-) matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
Screw off. Top posting is actually a default in the mail software community. And I will always do it. More annoying: Extra spaces and not removing the cruff from the bottom of emails. And condescending asshats. On Aug 3, 2011, at 1:08 PM, Robert Bonomi wrote: Pierre, please do not 'top post' replies -- it makes the 'logic' of the message hard to follow, to wit: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? See also _RFC 1855_ for the closest thing to an 'official' stance on the matter. Date: Wed, 3 Aug 2011 13:10:03 -0400 From: Pierre-Luc Drouin pldro...@pldrouin.net To: Chris Whitehouse cwhi...@onetel.com Cc: User Questions freebsd-questions@freebsd.org Subject: Re: printing to Kyocera FS-1030D Hi, I would install CUPS and use the PPD file recommended on openprinting.org (http://www.openprinting.org/printer/Kyocera/Kyocera-FS-1030D). This is -guaranteed- to be *ineffective*. Apparently you missed the mention in the OP's original message that the printer is running in 'PCL' emulation mode, and that he _cannot_ change that. Cheers, Pierre-Luc On Wed, Aug 3, 2011 at 12:41 PM, Chris Whitehouse cwhi...@onetel.com wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I'm following the handbook. I think the basic setup is ok, I can get text printed using eg # lptest 20 5 | lpr -Plp If I try to print the postscript program given in the handbook %!PS 100 100 moveto 300 300 lineto stroke 310 310 moveto /Helvetica findfont 12 scalefont setfont (Is this thing working?) show showpage # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? I'm using 8.1-RELEASE, openoffice.org-3.2.1, ghostscript8-8.71_6 thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
El día Wednesday, August 03, 2011 a las 01:22:51PM -0500, Ryan Coleman escribió: Screw off. Top posting is actually a default in the mail software community. And I will always do it. It is by no way a default. It is just a defect, ignorance and bad taste, and even if the mayority use it, it will just show that this mayority is ignorant (to not use an unpolite word). matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: printing to Kyocera FS-1030D
Alas, I was wondering when this would pop up again. Seems about every quarter or so... Notice that I posted Top AND Bottom - is that half as bad or doubly bad? And seriously, although it (Top posting) is apparently a violation of the list AUP, does it REALLY matter THAT much? Personally I HATE bottom posting as I try to follow threads real-time and having to scroll to the bottom to see the most recent post sucks - especially on mobile email. But, if I was about to get kicked off the list I would probably bottom post... -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Matthias Apitz Sent: Wednesday, August 03, 2011 1:30 PM To: Ryan Coleman Cc: pldro...@pldrouin.net; freebsd-questions@freebsd.org; cwhi...@onetel.com; Robert Bonomi Subject: Re: printing to Kyocera FS-1030D El día Wednesday, August 03, 2011 a las 01:22:51PM -0500, Ryan Coleman escribió: Screw off. Top posting is actually a default in the mail software community. And I will always do it. It is by no way a default. It is just a defect, ignorance and bad taste, and even if the mayority use it, it will just show that this mayority is ignorant (to not use an unpolite word). Alas, I was wondering when this would pop up again. Seems about every quarter or so... Notice that I posted Top AND Bottom - is that half as bad or doubly bad? And seriously, although it (Top posting) is apparently a violation of the list AUP, does it REALLY matter THAT much? Personally I HATE bottom posting as I try to follow threads real-time and having to scroll to the bottom to see the most recent post sucks - especially on mobile email. But, if I was about to get kicked off the list I would probably bottom post... font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On 03/08/2011 18:58, Gour-Gadadhara Dasa wrote: On Wed, 03 Aug 2011 17:41:44 +0100 Chris Whitehousecwhi...@onetel.com wrote: Hi, before I use up too many trees experimenting, could some kind soul tell me how I can get OpenOffice to print to this printer. This is the first time I have tried to get anything printed from FreeBSD. I've Kyocera FS-920 and recommend printing via CUPS by using *.PPD driver. Sincerely, Gour I thought about CUPS but it's just one computer and one printer so CUPS seems a bit overkill. Besides since I've never set up UNIX printing before I think it's a good idea to try and do it from the basics first. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On 03/08/2011 18:59, Robert Bonomi wrote: So either what should I set Device to, or how do I get ghostscript to know about this printer? I don't think there is a 'generic' PCL driver, but one of the 'HP laserjet' drivers _should_ do the job. Pick one thqt corresponds to a 'more-or-less recent' model. I can't give specific advice, as I don't have ghostscript installed on my FreeBSD server. (it's remote and I never actually print from it.) Rechecking gs -h there is a pcl3 driver so I'll give it a try as well as actual printer drivers as you suggest. Thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On 03/08/2011 19:18, Matthias Apitz wrote: # catps-file |lpr -Plp To the OP: You won the todays Useless Use of Cat Award :-) The same would do: lpr -Plp ps-file or lpr -Plp ps-file :-) matthias Well I'm not a guru so perhaps I can be excused :-) Still thanks for the pointer about lpr, I should have read the man page. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On Wed, 3 Aug 2011, Chris Whitehouse wrote: # cat ps-file |lpr -Plp I get the whole text of the file not just Is this thing working?. The printer has various emulations, it is set to PCL 6 and I can't change it (not my printer) HP printers can use PJL sequences to set the page description language, or autodetect it via the first few characters. But if someone in charge decided to stick you with PCL6 that should also include PCL5. Printing from OpenOffice just produces screeds of garbage, starting with %!PS so I presume the text of the postscript that OO has produced. The bit I'm stuck on is in section 9.4.1.3 Simulating PostScript on Non PostScript Printers (which I presume is what I need), specifically setting the device. gs -h doesn't show this printer or any Kyocera printer. So either what should I set Device to, or how do I get ghostscript to know about this printer? The ljet4 driver in Ghostscript produces PCL5. I think there's also a PCL6 driver, but have never bothered. My printing document here shows how to create a PS to PCL5 filter: http://www.wonkity.com/~wblock/docs/html/lpdprinting.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: printing to Kyocera FS-1030D
On Wed, 3 Aug 2011 20:18:53 +0200, Matthias Apitz wrote: So, what? If you can only print PCL, just raster the Postscript file with ghostscript to PCL (using CUPS, this also can be done on the fly); Why the emphasize of CUPS? Even printer filter collections like apsfilter are too fat for that job. If I want to get a nail into the wall, I don't hammer it with the tool box. :-) In fact, apsfilter just uses gs with some parameters to turn PS - the _default_ printing output format - into PCL. You can install the ghostscript port (gs) and then add a very simple gs filter. It can be activated in /etc/printcap, pointing to that filter script. Here's an example of what such a filter can do (in my case: for a HP Laserjet 4000 duplex in PCL mode for two-sided priting): gs -q -dBATCH -dFIXEDMEDIA -dPARANOIDSAFER -dQUIET \ -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs \ -sDeviceManufacturer=HEWLETT-PACKARD \ -sDeviceModel=HP LaserJet -dDuplex=true \ -dIjsUseOutputFD -sPAPERSIZE=a4 -r600 The corresponding /etc/printcap entry is this: Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/Laserjet:\ :lf=/var/spool/lpd/Laserjet/log:\ :af=/var/spool/lpd/Laserjet/acct:\ :mx#0:\ :sh: (And: Yes, it's a parallel attached printer in fact.) You can easily deduct what the certain parameters do. In fact, apsfilter doesn't do much more, although it has a pretty printing pre-filter that allows you tricks like % lpr somepicture.png or even % lpr foo/bar/bla.c with syntax highlighting in the output, if you need. For printing from within X, _any_ program, be it OpenOffice or an image processing tool, accessing the proper printer queue is fully sufficient. Keep in mind that _some_ programs require you to check printer settings (like Gimp for example) for format and resolution. # cat ps-file |lpr -Plp To the OP: You won the todays Useless Use of Cat Award :-) The same would do: lpr -Plp ps-file or lpr -Plp ps-file :-) Just in case lp is still your default printer queue name (no $PRINTER set to override), -Plp can also be omitted. Useless use of -Plp, because that's the default. :-) When you _can_, set the printer to PS mode. It's the easiest thing. You just need the system's (!) lpr subsystem to feed the PS jobs into the printer. If PS is not possible, use PCL. If you really, REALLY require features of the printer that need to be addressed by the PPD mechanism, use CUPS, even if I can't imagine such features (because gs lets you address things like paper tray preference, duplexer and so on through PCL commands). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org