Transforming an HP-GL/2 file

Because the pcl2afp transform does not accept HP-GL/2 directly as input, you can use the -c flag to concatenate some sample PCL files that allow the HP-GL/2 file to be processed. To transform the HP-GL/2 file myfile.gl into a MO:DCA-P data stream file myfile.afp, enter:

For AIX or Linux

pcl2afp -o myfile.afp -c /usr/llp/psf/pcl2afp/gl_before.pcl
   myfile.gl /usr/lpp/psf/pcl2afp/gl_after.pcl

For Windows

pcl2afp -o myfile.afp -c install_path\pcl2afp/gl_before.pcl
   myfile.gl install_path\pcl2afp\gl_after.pcl

The -c flag concatenates the three input files, making myfile.gl appear as a PCL file that includes HP-GL/2 commands.