phs-to-ijs

Photon IJS printing client

Syntax:

phs-to-ijs [options] -Xoutfile phsfile

Runs on:

Neutrino

Options:

-A
Force anti-aliasing of fonts.
-B size
Specify the size of the printer buffer in bytes. This buffer is used if the specified input file is a FIFO.
-b size
Specify the size of the slice buffer in bytes. The size can be:

The page slice buffer must be large enough to hold at least one line of the output image; that is:

  size ≥ dots_per_inch * page_width(inches) *
            bytes_per_pixel
  
-C
Disable the compression of output data.
-d
Delete the input file after processing.
-h height
Specify the initial height of the source image, if it isn't specified by the input file. The default is 480 pixels.
-m model
Select the printer model by specifying a string that matches the MODEL field of the IEEE 1284 Device ID string. For example, -m"Stylus COLOR 777".
-n name
Specify the name of the printer.
-oPn
Specify media type. The choices are: 1 (plain); 2 (photo); 3 (transparent). The default is 1.
-opn
Specify printing type. The choices are: 1 (B/W); 3 (CMY color); 4 (CMYK); 6 (CcMmYK).
-orn
Set the resolution; the default is 360×360 DPI.
-oSX,Y
Scale the image in the X or Y dimension (e.g. -oS0.75,0.6). The scale value may be:
Negative
Scale as a multiple of the source image size. For example, use -oS-1,-1 to print the image at exactly its source size. Each pixel of the image corresponds to one printed dot on the page. The size of the printed image varies, depending on the printer resolution (DPI).
Positive
Scale as a multiple of the page size. For example, use -oS1,1 to print the image at the full page size. In this example, the image is distorted if its aspect ratio (X:Y) is different from the page's width:height ratio.
0
Use the maximum size while respecting the aspect ratio of the source image. For example, -oS0,0.5 scales the image to half the height of the page and scales the width of the image proportionately.

If you set only the X scale factor, the Y scale factor is assumed to be the same value. For example, -oS0.5 sets both X and Y to 0.5, meaning the image fills ¼ of the page.

-p start[,end]
Specify the starting (and optionally ending) page number to print. If start is greater than end, the pages are printed in reverse order.
-pr
Print the entire file in reverse order.
-V
Be verbose (-VV: be more verbose).
-v
Display information about the version, then exit.
-W n
Specify the warning level for extensions. Choices are:
-w width
The initial width of the source image, if not specified by the input file. The default is 640 pixels.
-Xoutfile
The output device or file; for example:
-x offset
The initial x offset (default: 0).
-y offset
The initial y offset (default: 0).
phsfile
The name of a Photon draw-stream (*.phs) file.

Description:

The phs-to-ijs utility is an IJS client for printing Photon draw-stream (.phs) output using an IJS server. The configuration file for Epson IJS printers, /etc/printers/epijs.cfg specifies phs-to-ijs as a filter for spooler to use.

If the printer model cannot be determined from the output device, then you need to use the -m option to specify the printer model.


Note: Currently, only certain EPSON printers are supported.

This utility sends any error messages to slogger; use sloginfo to display them.

Examples:

phs-to-ijs -oS1 -or360x720 -X/dev/par1 file.phs

See also:

phs-to-bjc, phs-to-bmp, phs-to-escp2, phs-to-pcl, phs-to-ps, spooler

Printing with spooler in the Printing chapter of the Neutrino User's Guide