LinuxCommandLibrary

grolj4

Convert PostScript to PCL for LJ4 printers

SYNOPSIS

grolj4 [options] [files...]

PARAMETERS

-b
    Use a black background.

-d
    Specify the output resolution in dots per inch (dpi). Default is 300.

-e
    Emulate graphics characters using built-in PostScript fonts.

-F


    Search for font description files in directory .

-i
    Invert the colors of the output.

-l
    Set the page length to lines.

-n
    Set the initial page number to .

-o
    Output only the pages specified in .

-p
    Set the number of copies to .

-r
    Use reverse page order.

-s
    Set the point size to .

-T
    Set the output device to (must be lj4).

-v
    Print the version number.

-w
    Set the page width to .

DESCRIPTION

The grolj4 command is part of the GNU troff (groff) typesetting system. It's a device driver for groff that translates troff's output into a format suitable for printing on HP LaserJet 4-compatible printers. grolj4 takes the output from groff and processes it, generating PostScript code optimized for the LJ4's capabilities. This includes handling fonts, graphics, and page layout. While newer PostScript printers might be better handled by other drivers, grolj4 remains useful for supporting older hardware or when specific LJ4 compatibility is desired.
It's generally invoked indirectly by groff, using options like `-Tlj4`. grolj4 supports features specific to LaserJet 4 printers, such as internal fonts and PCL commands. It is important to note that grolj4 creates PostScript and does not directly generate PCL. PostScript is then processed by a RIP to generate the final image.

FONTS

grolj4 utilizes font description files to map troff font names to PostScript fonts available on the printer. These files are typically located in a directory specified by the `-F` option. The default location is usually /usr/share/groff/site-font/devlj4. The actual fonts available depend on printer capabilities and RIP.

INVOCATION

grolj4 is generally not invoked directly by the user. It is intended to be called automatically by groff. The typical usage is groff -Tlj4 | lpr to process the file and print the output. The use of pipe to lpr is not mandatory, and user can store the postscript output to the file using redirection.

SEE ALSO

groff(1), troff(1), grops(1)

Copied to clipboard