IFHP(8) | System Manager's Manual | IFHP(8) |
ifhp - Almost Universal LPRng Print Filter
ifhp
[-F format] [-s statusfile] [-?value (other LPRng filter options)]
[-Z[options[,options]*]*
[-T[options[,options]*]*
[accountingfile]
ifhp.conf(configuration file)
The ifhp is a general purpose filter for allmost all PostScript, PJL, PCL, and text based line printers.
The ifhp filter resets and synchronizes the printer, gets accounting information, and then checks the file to determine its format. Based on the format, it will do PCL, PostScript, or other initializations, and then transfer the file to the printer. Termination sequences are sent, followed by getting accounting information.
Options controlling ifhp operations are specified by -Toption or -Zoption values. These options have the form:
Form Same As flag flag=1 flag@ flag=0 flag=str flag#str
The complete set of options and their effect on operation are detailed in the IFHP-HOWTO document. The following is a brief list of the more important ones that will have a dramatic effect on printer operation.
If the status option is true, then the ifhp filter will assume that the printer is attached by a bidirectional channel and will attempt to read status information from the printer. This also enables the sync, sync and pagecount handshaking and getting pagecount information from the printer.
The sync flag causes a special PJL job or PostScript job to be sent to the printer at the start of printing at periodic intervals. This job has the property that it will attempt to put the printer into a sane state and cause it to return status information. By default, if the printer supports PJL then the PJL job is used, otherwise if it supports PostScript, the PostScript job is used. You can force the sync method using sync=pjl or sync=ps if necessary, and suppress it using sync@
The waitend flag causes a special PJL job or PostScript job to be sent to the printer at the end of the job at periodic intervals. This job has the property that it will attempt to put the printer into a sane state and cause it to return status information. By default, if the printer supports PJL then the PJL job is used, otherwise if it supports PostScript, the PostScript job is used. You can force the waitend method using waitend=pjl or waitend=ps if necessary, and suppress it using waitend@
The pagecount flag causes a special PJL job or PostScript job to be sent to the printer at the start and end of the job. This job has the property that it causes the printer to return the value of a hardware page counter. By taking the difference of the start and end values of the pagecounter, an accurate measure of the number of pages (or impressions for some duplex printers) can be done. By default, if the printer supports PJL then the PJL job is used, otherwise if it supports PostScript, the PostScript job is used. You can force the pagecount method using pagecount=pjl or pagecount=ps if necessary, and suppress it using pagecount@
The IFHP filter will puts tracing and status information in the file specified by the -s command line flag. If the status file does not exist, it will not be created. The diagnostic trace flag overrides this and directs the status to STDERR.
The pagecount information is put into the accounting file specified on the command line. If the accounting file does not exist, it will not be created.
The lpr program passes the command line -Z options or the lp program -o options to the LPRng lpd server which then passes them to the ifhp filter. The options are used to control various printing features. For example if duplex printing and landscape is wanted, then
lpr -P<printer> -Z'duplex,landscape' <file>
Since each printer has a different set of capabilities there are no standard set of -Z options. The following is a sample of the options provided by ifhp. Check the ifhp.conf file for all of the options supported by the printer.
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 b0 b1 b2 b3 b4 b5 archA archB archC archD archE flsa flse halfletter note letter legal 11x17 ledger tabloid
The OF mode of operation is selected by the -Fo command line option. When operationg in OF mode it will scan the input for a two character stop sequence \031\011. When it finds the sequence it will suspend itself. The spooler will restart the filter with a SIGCONT signal when it has more output for it.
The IFHP-HOWTO document, which is included as part of the IFHP distribution. This is the principle reference for this filter.
FTP sites: ftp://ftp.lprng.com
WEB sites: http://www.lprng.com
Mailing List. Send email to lprng-request@lprng.com with the word 'subscribe' in the boyd.
They are not bugs. They are mis-documented features.
The IFHP filter was inspired by the LPRng CTI-ifhp filter, which was a descendent of the print filters developed by the CTI-Print project at the Division of Computing Facilities of the Computer Technology Institute (CTI), Patras, Greece.
Patrick Powell, Astart Technologies, San Diego, CA <papowell@lprng.com>
3.5.20 |