LinuxCommandLibrary

foo2zjs-pstops

Convert PostScript to ZjStream format for printers

SYNOPSIS

foo2zjs-pstops [options] output

PARAMETERS

-l
    Landscape mode.

-r
    Reverse page order.

-p #
    Specify the page number to print. Defaults to all pages.

-m
    Specify the output media type (e.g., Letter, A4). Defaults to Letter.

-n #
    Specify the number of copies. Defaults to 1.

-d
    Specify duplex mode (simplex, duplex). Defaults to simplex.

-z
    Specify Zoom factor (default: 1.0)

DESCRIPTION

The `foo2zjs-pstops` command is a utility that converts a raw `foo2zjs` printer data stream into a standard PostScript file. This PostScript file can then be printed to any PostScript printer. `foo2zjs` is a printer driver for printers based on the ZjStream printing language, commonly found in some low-cost laser printers like certain HP LaserJet models. This command bridges the gap between the `foo2zjs` driver output and the standard PostScript language, making it compatible with a wider range of printers. It is part of the `foo2zjs` printer driver package and is typically used in conjunction with it. The main purpose is to create a printable PostScript representation of documents formatted for ZjStream printers, enabling users to print these documents on devices that support the PostScript standard, which is very common for laser printers. In summary, it's a converter enabling printing from the foo2zjs driver to PostScript compatible printers.

USAGE EXAMPLE

To convert a foo2zjs file named `input.zjs` to PostScript and save it as `output.ps`, you would use the following command:
foo2zjs-pstops < input.zjs > output.ps

PRINTING THE POSTSCRIPT FILE

Once the PostScript file is created, you can print it using a PostScript printer or a program like `gs` (Ghostscript). For example:
lpr output.ps
or
gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=laserjet -sOutputFile=- output.ps

SEE ALSO

foo2zjs(1), pstops(1), gs(1)

Copied to clipboard