Flags and values

-a {ioca | ioca10 | ioca11 | im1 | ioca42 | ioca45 | PS.2}
-a {IO1_G4 | IM1 | IO1 | IO1_MMR | PSEG_IO1_G4 | PSEG_IM1 | PSEG_IO1 | PSEG_IO1_MMR | OVLY_IO1_G4 | OVLY_IM1 | OVLY_IO1 | OVLY_IO1_MMR | FS45 | FS42 | FS10 | FS11}
Choice of the output image type. The first syntax chooses between the IOCA FS 10 (ioca, ioca10), IOCA FS11 (ioca11), IM1, IOCA FS42 (ioca42), and IOCA FS45 (ioca45) output. IOCA FS10 and IM1 yield bi-level images, while IOCA FS11 results in 4-bit or 8-bit gray or 24-bit color output (see option -outbits). Currently, the only product that supports IOCA FS11 is AFP Workbench. IOCA FS42 can contain either bi-level or 4-bit banded CMYK image at 1-bit per band. IOCA FS45 is a superset of FS42 that also contains 32-bit banded CMYK images, compressed with either JPEG or LZW algorithms. The output compression algorithm is set with the -cmp option. To set the page type (page, overlay, page segment, or object), use the -pagetype option. FS45 produces IOCA FS45 output.
The second syntax is to maintain compatibility with the PostScript to AFP transform, and sets the image type (IO1 for IOCA FS10 or IM1 for IM1 output), compression (G4 for Group 4 or MMR for Group 3), and page type (PSEG for page segment or OVLY for overlay). If you do not specify PSEG or OVLY, the output is a printable page. If you do not specify a compression algorithm, the output is not compressed. You cannot use the second syntax for IOCA FS11 output.
Some older printers do not support IOCA images. In such cases, choose the IM1 output type. IM1 images are uncompressed, and thus, use more space. The processing takes longer since the printer cannot scale the IM1 image, so internal scaling algorithms must be used. See option -alg.
The default is ioca for IOCA FS10 output compressed using the Group 4 algorithm.
-alg {alg3 | afp | alg1 | alg2}
-alg {htod1 | htfs}
-alg htcal1
Choice of the scaling and halftoning algorithms. You can specify multiple choices, separated by commas, for one -alg option. The effect is the same as specifying multiple -alg options. For example, -alg htfs,htcal is equivalent to -alg htfs -alg htcal.

The scaling algorithms are: if afp is chosen, the scaling is done using the default algorithm in the printer. This makes the transform much faster. If the image must be reduced, however, this algorithm might drop some information from the image, such as thin lines.

For color images with bi-level output, the scaling is always done before the halftoning algorithm. If a grayscale or color output is chosen (-a ioca11), this option is ignored and the algorithm is set to afp.
The halftoning algorithms are:
  • htod1 uses an ordered dither with a screen derived from the value of the -thresh option. The default is an 85 line per inch screen.
  • htfs uses the Floyd-Steinberg algorithm.
  • htcal1 recalibrates the halftoning algorithm for each image. htcal1 forces the transform to read the whole image into memory and requires an additional pass through the image. Use it only for light or dark images.
The default is htod1. Each halftoning algorithm uses a different internal default calibration curve. If the automatic calibration is turned on, a different set of calibration curves is used.
See options -gcorr, -paper, -scale, -thresh, -l, -w, -x, and -y.
-cmp {none | mh | mmr | g3 | g4 | jpeg | lzw}
Choice of the output image compression algorithm:
none
Uncompressed output
mh
ITU-T T.4 G3 Modified Huffman
mmr
Modified Modified Read
g3
ITU-T T.4 G3 Modified Read
g4
ITU-T T.6 G4
jpeg
JPEG non-differential Huffman coding with baseline DCT. Compress the output image data to reduce the file sizes and increase the printing speed.
lzw
If lzw is specified, linework of 600 dpi is produced; otherwise, lossy JPEG at 300 dpi is produced. lzw only applies to FS45.
The default compression is ITU-T T.6 Group 4 for bi-level images and no compression for gray scale or color images. Some printers do not support Group 4 compression algorithm and require using the -cmp option to choose a different one. The JPEG algorithm can compress only 8-bit gray scale and 24-bit color images. 4-bit gray scale images cannot be compressed.
-cmrpath searchPath,searchPath
Specifies the search order for locating color resources. This search order is a series of directory paths that color resources are located in. If you specify two or more -cmrpath flags, the transform concatenates these search orders.
-crop t , b , l , r {i | m | p | d}
Image cropping. t,b,l,r specify how much is cropped from the image top, bottom, left edge, and right edge. The numbers are floating point and can be either positive or negative. Negative numbers indicate that a blank space must be inserted. The units are inches, millimeters, points, and dots (pels). The default is dots. Cropping is specified in the context of the output page, so top means the top of the output page and so on. The -rot option is not taken into consideration. To crop, the transform enlarges the image by the amount to be cropped, then crops the specified amount by manipulating the actual bitmap. The resulting image has the size as specified by the explicit (or implicit) -scale option. See also option -j.
If -fit trim is specified, the right and the bottom edge of the image are not cropped. Instead, the image grows as necessary. Because -fit trim causes the output data stream to contain the position and trim specification, the printer discards any extra image.
-devmodel model
Specify the device model of the actual device.
-devtype type
Specify the device type of the actual device.
-f FileList
Specifies the name of a file, that contains a list of files processed by the transform. If the -f option is present, the output file defaults to standard output, even if the list of files contains only a single entry. Multiple -f options are allowed. See also options @ and -z.
-fit {trim | scale}
Determines whether the printer behavior is position-and-trim or scale-to-fit if the image is too large to fit on the paper. The default is trim.
-gcorr FileName
Specifies a FileName with a gray scale mapping table for halftoning of the gray scale and color images to bi-level for output. The FileName you specify can be a fully qualified filename. If you do not specify a path, the transform looks in /opt/infoprint/itm/hn/resources/common/color on the Linux workstation.
The mapping table must be provided to compensate for the printing characteristics of the particular output device and paper type, such as dot gain. This file must contain either:
  • 256 real numbers, one for each level of gray in the 8-bit gray scale image.
  • The PostScript settransfer operator.
The algorithm converts every image to 8-bit gray scale before applying the halftoning algorithm. The default might not produce the halftone image quality that your printer is capable of. Mapping tables for several different engine types and line screens are supplied with the transform and are installed in /opt/infoprint/itm/hn/resources/common/color on the Linux workstation. To tune your image quality, select the file that matches your printer model. See also options -alg and -thresh. PostScript code submitted with the -thresh option can have the same effect as -gcorr.
-icmr colorResourceName,colorResourceName
Specifies one or more input or audit color resources. The color resources can be either ICC Profiles or Color Management Resources (CMRs). If you specify two or more -icmr flags on a transform command line, InfoPrint concatenates the resources together. If two or more resources specified by the -icmr flags are for the same color space, InfoPrint uses the last specified resource.
-inline {yes | no}
Specifies whether the output Color Management Resource (CMR) is placed inline in the data stream. If you specify two or more -inline flags on a transform command line, the transform uses the last specified value.
-intent {relative | perceptual | saturation | absolute}
Specifies the rendering intent. You can also use the -pragma option to specify the rendering intent by setting:
-pragma colorRendering=relative
If you specify two or more -intent flags on a transform command line, the transform uses the last specified value.
-is3
Specifies that the transform produce IS/3 compliant datastreams.
-j ScanOffsetFileName
Sometimes input images must be shifted to get the desired positioning on the page. The scan offset file contains the directions for shifting. The file has the format of:

[attribute]
values
⋮ values
[attribute]
values
⋮ values

Currently, the recognized attributes are Units(values millimeters, mm, inches, in, points, dots, pels) Page_Offset_Type (values crop or grow) and Page_Offsets. The values for page offsets are in the format FileName,Hhoriz,Vvert. Each entry refers to a file. The file names must be specified Options and values 2 296 (or at least the leading comma must), but are currently ignored and the offset factors are applied to each file in turn. The same factors are applied to each image in the file. The horiz and vert values are the amount that the image is shifted, in the horizontal and vertical direction. The positive directions are down and right (that is, the origin is in the left upper corner of the page). The default units are millimeters. Like the values for the -crop option, the shifts are specified in the output space context.
Extra spaces and blank lines are allowed. Unrecognized attributes and their values are ignored. See the sample file shift.sample.
If the image is moved left or up, part of the bitmap is removed. If the image is moved down or right, removal is governed by the value of the Page_Offset_Type attribute. If crop is chosen, the transform removes the requisite amount from the right and bottom edges of the bitmap. If grow is chosen, the transform does not remove any space. The bitmap grows and the trimming, if any, is left to the printer. If the -fit trim option (the default) is specified, Page_Offset_Type defaults to grow. For -fit scale, Page_Offset_Type defaults to crop.
-l {11i yyy.yy {d | m | i | p}}
Specifies the paper length. The optional units are dots (pels), millimeters, inches, or points.
The default unit is dots. If the unit is dots, decimals (if any) are ignored. The default paper length is 11 inches.
See options -w to set the paper width or -paper to set both dimensions at the same time.
-lut LookupTableFile { , rgb | lab | cmyk}
Specifies the FileName for the color conversion lookup table file. The FileName you specify can be a fully qualified filename. If you do not specify a path, the transform looks in /opt/infoprint/itm/hn/resources/common/color on the Linux workstation.
Fast and accurate conversion between color spaces can be implemented as a multidimensional lookup with an interpolation algorithm for missing nodes. The file specified with the -lut option must contain a valid lookup table for the conversion between the input and output color spaces. The lookup tables currently come in either ASCII (.lut) or binary formats (.lutbin).
If the optional colorspace tag is not provided, the table is assumed to match the input image. If there is a serious mismatch between the table and the image (for example, the table is RGB to CMYK and the input image is CMYK), the -lut is ignored for the image. Otherwise, it is used to convert the colors and any mismatch (for example, using a lab table for rgb data) results in corrupted output.
If the colorspace tag is provided, the transform uses the lookup table only for the relevant colorspace image. Multiple lut tables can be specified if you are unsure about the input colorspace. If the lut files are binary, parsing extra files does not slow performance much.

Example:-lut 3170-005.rgb.cmyk.perceptual.lutbin,rgb where 3170-005 is the model-type; rgb.cmyk is for RGB images; and perceptual is the color-rendering-intent value.

-M {0 | nnn
Limits the amount of memory available to JPEG to AFP. nnn is the maximum amount of memory in kilobytes. A value of 0 means there is no memory limit. nnn can be set from 0 to the maximum value that the operating system allows. The default is 0.
-ms {10 | nnn
Requires that at least nnn kilobytes of disk space be available on the file system that contains the output file. This limit is enforced every time data is written to the output file. If the output is standard output, this option is ignored. The default is 10. See option -msf.
-msf {0.1 | x.xxx}
The number x.xxx is a real number from 0 through 1. It denotes the minimum space that must be left unused on the file system containing the output file. The space is given as a fraction of the total space in the file system. This limit is enforced every time data is written to the output file. If the output is standard output, this option is ignored. The default is 0.1. See option -ms.
-nov
See [-nov | -v].
-nov | -v
Turns on verbose mode (-v) or off (-nov).
  • When verbose mode is on, the transform prints a message as it opens each resource file. It then echoes the command line and then prints a message for each file name as it is processed.
  • When verbose mode is off, the transform prints only error messages.
The default is -nov.
-o FileName
Optional output file name. Specify - for standard output.
-ocmr colorResourceName
Specifies an output color resource. The color resource can be either an ICC Profile or a Color Management Resource (CMR). If you specify two or more -ocmr flags on a transform command line, the transform will use the last specified value.
-otag {none | normal | passthru}
Specifies how the output AFP will be tagged with color information. The allowed values are:
none
There will be no tagging in the output AFP.
normal
The transform will use the specified -ocmr value to tag the output AFP as an input (audit) Color Management Resource (CMR).
passthru
The transform will use the specified -ocmr value to tag the output AFP as both an input (audit) CMR and an output (instruction) CMR.
If you specify two or more -otag flags on a transform command line, the transform will use the last specified value.
-outbits NumberOfOutputBits
Sets the number of bits per pel in output. This value must be 1, 4, 8, or 24. If the output image type is IOCA FS10 or IM1, the number of output bits is set to 1 and this option is ignored. For IOCA FS11 output, the default is 24. This number represents the maximum number of bits used per pel. Thus, even if the number of bits is set to 24, a 4-bit grayscale image is still displayed in 4-bit format.
-outcolor {rgb | ycbcr | ycrcb}
Sets the output color model to RGB, YCbCr, or YCrCb if the image type is IOCA FS11 and the number of output bits is 24. Otherwise, this option is ignored. The default is ycbcr.
-p {even | odd | nn | nn-mm | nn- }
Specifies that the output should only contain the specified pages. If no -p option is given, all the pages are output. Multiple -p options can be specified. Their effect is cumulative. Regardless of the order in which the pages are specified, they are always printed in ascending order.
The supported values are:
even
Print all even pages
odd
Print all odd pages
nn
Print page nn
nn-mm
Print pages nn to mm, inclusive
nn-
Print all pages starting with page nn
Pages are numbered starting with 1.
You can use -p when the JPEG to AFP transform is processing one file at a time. This flag is ignored if you specify multiple files within the same job.
-pagetype {page | overlay | ovly | pseg | object}
Sets the output page type to be page, overlay, page segment or object. The same page type is set for every page in the output. Thus, unless you use the -p option to select a single page, multiple page segments or overlays are stored in the output file.
The default is page.
See option -a.
-paper {a5 | a4 | a3 | letter | folio | legal | ledger xxx.xx , yyy.yy {d | m | i | p}}
Specifies the output paper size. The supported values are:
a3
A3 format (297 by 420 mm or 11.69 by 16.54 inches)
a4
A4 format (210 by 297 mm or 8.27 by 11.69 inches)
a5
A5 format (148 by 210 mm or 5.83 by 8.27 inches)
letter
8.5 by 11 inches (216 by 279 mm)
folio
8.5 by 13.0 inches (216 by 330 mm)
legal
8.5 by 14.0 inches (216 by 356 mm)
ledger
11.0 by 17.0 inches (279 by 432 mm)
xxx.xx,yyy.yy
Horizontal and vertical page dimensions. The optional units are dots (pels), millimeters, inches, or points.
The default paper size is letter. If -paper is not used, the paper size is increased, if necessary, to contain the output image.
See options -l, -w, and -scale.
-r {600 | 300 | nnn}
The output device resolution, specified in dots per inch.
The default is 600.
-respath directory[:directory...]
Sets the search path for resource files, such as the scan offset files and grayscale calibration curve files. If a resource file name is specified as a relative name (does not start with a /), the transform searches every directory in the path, in the specified order, until it finds the file (or fails). See options -j and -gcorr for scan offsets and grayscale calibration curve. The default is the current directory.
-rot {0 | 90 | 180 | 270 {p | i}}
The image is rotated in the clockwise direction by the amount specified. The default is zero; that is, no rotation.
If p is specified, the transform sets the output data stream in such a way that the printer does the actual image rotation. If i is specified, the transform rotates the output bitmap. When i is chosen, the transform takes much longer to run and uses much more memory. If no letter is specified, the default or any previous value remains in force.
The default is p.
-S ServerName | none
Specifies the name of the system on which Transform Feature is running. The value is:
ServerName
Any valid workstation name on which Transform Feature is installed and running. The name is defined in the /etc/hosts file or by a name server, and can be a nickname like molly, or a dotted decimal address like 9.99.9.23.
none
Processes the gif2afp transform locally.
    Note:
  • When the -S flag is not specified or the -S flag specifies none, the -P flag is ignored.
-scale {orig | a5 | a4 | a3 | letter | folio | legal | ledger xxx.xx , yyy.yy {d | m | i | p} | xxx%}
Specifies the output image size. The image is scaled to this size and centered in the area defined by the paper size and margin options. The supported values are:
orig
Preserve the input image size, regardless of the printable paper area
a3
A3 format (297 by 420 mm or 11.69 by 16.54 inches)
a4
A4 format (210 by 297 mm or 8.27 by 11.69 inches)
a5
A5 format (148 by 210 mm or 5.83 by 8.27 inches)
letter
8.5 by 11 inches (216 by 279 mm)
folio
8.5 by 13.0 inches (216 by 330 mm)
legal
8.5 by 14.0 inches (216 by 356 mm)
ledger
11.0 by 17.0 inches (279 by 432 mm)
xxx.xx,yyy.yy
Horizontal and vertical page dimensions. The optional units are: dots (pels), millimeters, inches, or points.
xxx%
Magnification relative to the original image size. Numbers below 100% mean reduction, while numbers above 100% mean enlargement. For example, -scale 200% causes the output image to be twice as long and twice as wide as the input image.
The default image size is orig.
-thresh FileName
Specifies a FileName that contains a PostScript Type 1 or Type 3 halftone dictionary. The FileName you specify can be a fully qualified filename. If you do not specify a path, the transform looks in /opt/infoprint/itm/hn/resources/common/color on the Linux workstation.
Halftone dictionaries for several different engine types and line screens are supplied with the transform and are installed in the /opt/infoprint/itm/hn/resources/common/color on the Linux workstation. To tune your image quality, select the file that matches your printer model.
Alternatively, the PostScript code can specify the setscreen operator instead of a Type 1 dictionary. The halftone cell in the dictionary is used to overwrite the default ordered dither clustered dot halftone cell. If the PostScript code contains a transfer function, either in the halftone dictionary or specified by the settransfer operator, the current grayscale correction curve is overwritten as if -gcorr were used.
-w {8.5i yyy.yy {d | m | i | p}}
Specifies the paper width. The optional units are dots (pels), millimeters, inches, or points.
The default unit is dots. The default page width is 8.5 inches.
See options -l to set the paper length or -paper to set both dimensions at the same time.
-wrkdir WorkDirectoryName
Input to jpeg2afp from stdin must be cached on disk before it can be processed. This option specifies which directory to use for the caching of the standard input. If this option is absent or the directory cannot be opened, the transform first tries to use /var/psf/jpeg2afp as the working directory and, if /var/psf/jpeg2afp is absent, /tmp is used.
The stdin cache file is never visible to you because it is immediately unlinked after creation. Thus, the cache file is always deleted when jpeg2afp finishes execution, even if jpeg2afp is killed or otherwise terminates in error.
-x {0 xxx.xx {d | m | i | p}}
Specifies the left margin. The optional units are dots (pels), millimeters, inches, or points.
The default unit is dots. The default is zero (no margin).
-y {0 xxx.xx {d | m | i | p}}
Specifies the top margin. The optional units are dots (pels), millimeters, inches, or points.
The default unit is dots. The default is zero (no margin).