From owner-freebsd-questions@FreeBSD.ORG Fri Aug 5 22:59:05 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48B14106564A for ; Fri, 5 Aug 2011 22:59:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 041278FC14 for ; Fri, 5 Aug 2011 22:59:04 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id p75Mx3NN023855; Fri, 5 Aug 2011 16:59:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id p75Mx3J3023852; Fri, 5 Aug 2011 16:59:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 5 Aug 2011 16:59:03 -0600 (MDT) From: Warren Block To: Chris Whitehouse In-Reply-To: <4E3C6C74.8070500@onetel.com> Message-ID: References: <4E397A48.8070600@onetel.com> <20110804212923.GA15233@slackbox.erewhon.net> <4E3C6C74.8070500@onetel.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Fri, 05 Aug 2011 16:59:04 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: printing to Kyocera FS-1030D X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 22:59:05 -0000 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"