From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eceae65b1b523b82 X-Google-Attributes: gidfee84,public From: Ernest LaBonte Subject: Re: Help with print filters Date: 1998/12/10 Message-ID: <74on8e$30p$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 420821425 Content-Transfer-Encoding: 7bit References: <74mfoj$gs2$1@nnrp1.dejanews.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 gabriel_ronin@my-dejanews.com wrote: > Does anyone know where I can find an example print filter that is not > compiled? I am trying to locate one that describes how I would set options > for printing compressed and changing the cpi. Or, if this is not handled by > the print filter can someone inform as to what file or options control print > characterists. > > TIA, > > Shawn Russell > > -----------== Posted via Deja News, The Discussion Network ==---------- > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own To provide a printing solution it really helps to know the OS Version, printer type, connection method, and an idea what you are trying to accomplish. The commands to set font size and character pitch are not the same for all printers. Up front there is PostScript and non-PostScript printer languages. HP, Epson, Canon non-PostScript languages are different. You really need to provide the make and model of the printer otherwise you will get answers based on assumptions. The commands to set up a printer is provided by the print filter. However as Juergen Schroeder noted print filters are not used in a remote print environment. Tcp/ip socket printing has been available since V4.0a which most printer network cards support. Most likely you will be able to change a remote printing environment to tcp/ip and use print filters. If you are using a serial/parallel connection this paragraph is provided as an fyi. Using print filters. Most printer configurations use an output and input filter. The output filter handles the banner page. For now use an existing filter. The input filter handles printing features such as font, pitch, duplex, tray selection and all that other fun stuff. You can create a filter from scratch using shell scripts or C code. In V4.0d a new filter was provided called pcfof. It uses a Printer Control File. This is a text file containing the printer commands to setup the printer and select features. These files reside in /usr/lbin/pcf. It might be easier to edit a text file than creating a filter from scratch. Again without detailed info this may not apply.