Include the font description file of the font fontname to the generated output. EscapeChar: num Specify the escape character for the special escapes. The default value is 0. FormFeedType: type Specify what to do when a formfeed character is encountered from the input.
|Published (Last):||9 July 2015|
|PDF File Size:||5.98 Mb|
|ePub File Size:||6.35 Mb|
|Price:||Free* [*Free Regsitration Required]|
Specify a printer BSD-compatible systems -d Specify a printer System V systems -2 Print two columns per page -r Rotate the output 90 degrees -G Print "gaudy" headers, with large page numbers and filenames -l lowercase L Simulate a line-per-page line printer -p lowercase p Direct output to standard output or to a file Note: You can combine the -2 and -r options to produce 2up style documents, with two pages per sheet in landscape orientation.
For more information about enscript, read its man page by entering: man enscript Printing a file beginning with the last page and ending with the first page Two Unix commands, psselect and psrev, can reverse the output of a PostScript file.
In the following examples, replace printer with the network-connected PostScript printer of your choice e. To use psselect on a BSD system, at the Unix prompt, enter: enscript -p - filename psselect -r lpr -Pprinter To use psselect on a System V system, enter: enscript -p - filename psselect -r lp -d printer To use psrev on a BSD system, at the Unix prompt, enter: enscript -p - filename psrev lpr -Pprinter To use psrev on a System V system, enter: enscript -p - filename psrev lp -d printer The enscript command feeds to the standard output, psrev or psselect reverses the order of the PostScript file, and then this is fed to the printer via lpr or lp.
Back to top Using psduplex The psduplex command in Unix makes a file print on both sides of the paper. It will work only with printers that support double-sided i. The psduplex command accepts PostScript format input, and should be the last filter used before the print command. A single switch, -tumble, causes files printed in landscape mode to be rotated along the short side of the paper to keep the text upright. Normally, the rotation is done along the long side of the page. For example, on a system using BSD-compatible printing, to take the output of the enscript command converting a text file named myfile.
Because psduplex is actually just an executable Perl script, you can easily install it on your own system by copying the text in between the lines into a file:! Not all utilities are available on all Unix systems. In all examples, replace printername with the defined name of the printer. Also, in examples using the lpr commands, you could use the equivalent lp commands. On a BSD-compatible system, convert and print a text file without a banner page: enscript -Pprintername -h myfile.
Print a text file, one page per sheet, one-sided: lpr -Pprintername -h filename. Z lpr -Pprintername -h Print a compressed PS file as in step zcat filename. Z 2up lpr -Pprintername -h Print a PS file as in step 10, but double-sided: cat filename.
enscript(1) [redhat man page]
Password Linux - Software This forum is for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions. You are currently viewing LQ as a guest.
enscript(1) - Linux man page
Sets in 1 column the default. Normally, long lines are wrapped around to the following line on the page. This allows simple documents such as program listings in a single font to print somewhat faster by keeping the printer running between pages. The enscript command cannot report on pages, destination, omitted characters, and so on. Fatal errors are still reported to the standard error output. Use this flag for output that requires a wide page or for program listings when used in conjunction with the -2 flag. The following example shows one way to get program listings: enscript -2r File.
Questions tagged [enscript]
If no input files are given, enscript processes standard input. Enscript can be extended to handle different output media and it has many options which can be used to customize printouts. As a default, enscript wraps long lines so no information is lost. See also option --slice which can be used to slice long lines to separate pages. The number of the first line defaults to 1.