TutorialPrint Command




Prev | Up | Next | Back | Forward | Online Documentation Home Page

Print Command





The UNIX command by which printing is to be accomplished. In addition to text, the substitution ``%'' is allowed. This substitution stands for the name of the temporary file in which output is accumulated. For example, a Print Command of lpr % will issue the system command lpr with the temporary file as argument.

It is possible that your document will require an obscure font that is not automatically available to your printer. If you have reason to believe this is the case, you might consider running the program psfilter on the output before sending it to the printer. psfilter is a utility program that figures out what fonts are guaranteed to be known to the printer. For any font your document needs that is not known to the printer, psfilter will attempt to send the font (download it) to the printer.

In order to do its job properly, psfilter needs to know the name of the printer description file (to find out what fonts are known to the printer) and the location of downloadable fonts (in order to download the fonts that are not known).

The usage of the program is ``psfilter -ppd desc_file -download font_dir -file document''. By default, psfilter prints to the standard output (usually the screen). The output can be redirected to the printer via a UNIX pipe, using the ``|'' symbol. For example, suppose your standard print command is lpr, your printer description file is /usr/printer/printer.PPD, and the downloadable fonts are contained in the directory /usr/fonts. Then your Print Command might be:
psfilter -ppd /usr/printer/printer.PPD -download /usr/fonts -file % | lpr.


Forward