Transforming PCL image data
The PCL to AFP transform lets you specify the length and the width of PCL images. Before you use the -l and -w flags of the PCL to AFP transform, it is helpful to understand how PCL images are placed on the page.
The next figure shows an example of a PCL image. This image is 8.5 inches high and 11 inches wide, measured from the lower-left corner of the image.
If you want to print the entire image, specify a length of 11i and a width of 8.5i. When the image is printed, the upper-left corner of the image is placed at the point on the page called the logical page origin, which is specified in the form definition. The logical page origin is the point on the form where the page of data is positioned, and it is specified as an offset from the top-left corner of the sheet. Therefore, if the form definition has a logical page origin of 0.165 inches from both the left and top sides of the sheet, the top-left corner of the image is placed 0.165 inches down and to the left of the upper left corner of the sheet.
A PCL image
All this gets more complicated if you do not specify the entire image. For example, if you want to crop the image so that you only use the lower left corner, you would specify a width of 7i and a length of 7i with the PCL to AFP transform. The upper left corner of the resulting image is then placed at the logical page origin (as shown in the next figure).
A cropped PCL image
In this example, specify a PCL image that is 8.5 inches wide and 11 inches high. Again, the upper-left corner of the transformed image is placed at the logical page origin. Unless you specify a form definition with the print job that has a zero logical page origin (for example, F100S, F100D, or F100T), the page will not print because part of the image is outside the valid printable area (as shown in the next figure).
A PCL image offset from the top-left corner
As you can see from the previous figure, specifying the correct form definition is extremely important, particularly when you are printing a full-page image.
The default length and width values work with the default form definitions that are available for each type of printer.
However, if you want to specify exact placement of your PCL output on the page using a zero vertical and horizontal offset from the top-left corner of the page, specify one of these form definitions:
- F100S
- F100D
- F100T
If you specify a 0 horizontal and vertical offset in the form definition, the image produced by the PCL to AFP transform might be printed in the unprintable area of the printer. To avoid printing in the unprintable area, you can specify the -x (X offset) and -y (Y offset) flags on the PCL to AFP transform. These flags add white space to the top and left side of the image produced by the transform, ensuring that no data will print in the unprintable area.