Printing a PCL file with a defined image size

In this example, you will submit a PCL file called PCLFile2.pcl for printing on an InfoPrint printer called Dserv-lp. In addition, you will specify the form definition F100S and an image size of 9 inches in length and 6 inches in width, measured from the upper-left corner of the image.

Configuration assumptions: This example assumes these tasks have been performed by your system support group:

  • InfoPrint, including the pcl2afp transform, has been installed on the workstation on which the pcl2afp command is executed.
  • The pcl2afpd daemon has been started on the workstation on which the pcl2afp command is executed.
  • A 3900 printer device has been installed and defined to InfoPrint. A logical printer called Dserv-lp routes jobs to the physical printer representing that device.

Using the command line options: To print this example, enter this command on the command line:

pdpr -p Dserv-lp -x "form-definition=F100S
   image-length=19i image-width=6i" PCLFile2.pcl
or on AIX
enq -P Dserv-lp -oformdef=F100S -o-l9i -o-w6i PCLFile2.pcl

InfoPrint identifies the input data type as PCL without being told. InfoPrint automatically runs pcl2afp, and passes -l9i and -w6i from the enq command to pcl2afp.

You can get the same result by piping the output of the pcl2afp command to the input of the enq command:

pcl2afp PCLFile2.pcl -l9i -w 6i | enq -P Dserv-lp -oformdef=F100S

Using an attributes file with the pdpr command: To print this example, enter this command on the command line:

pdpr -X pclex2.X -p Dserv-lp PCLFile2.pcl
where the attributes file named pclex2.X contains these settings:
image-length=9i
Image length is nine inches
image-width=6i
Image width is six inches
form-definition=F100S
Use the F100S formdef for printing the job