
ͻ
 HPGL2PCL  version 1.0, April 16, 1992      
 Copyright (c) 1992 by Alexei Zhurov   
ͼ

   Converts HPGL files (Hewlett Packard Graphics Language) to PCL file
(HP LaserJet and DeskJet). Recognizes the following HPGL commands: IN,
SP, PT, PU, PD, PA.


 Usage


hpgl2pcl [-x#] [-y#] [-r#] [-f#] <source-file> [<target-file>]

Default target file: source file with PCL extension.
If target file already exists then it is backed up (BAK extension).


 Options


-x#     Set image scaling factor for x-direction (# - floating point
        number; 1 by default)

-y#     Set image scaling factor for y-direction (# - floating point
        number; 1 by default)

-r#     Rotate image by 90*# degrees clockwise (# - integer number 0,
        1, 2, or 3; 0 by default)

-f#     Flip image vertically (#=1) or horizontally (#=2) (# - integer
        number 0, 1, or 2; 0 by default)


 Examples


hpgl2pcl -x0.5 -y0.5 sample.hpg

        Convert the HPGL file sample.hpg into the PCL file sample.pcl
        proportionally shrinking all the sizes by 50%

hpgl2pcl -r1 -f2 sample.hpg samp.lj

        Convert the HPGL file sample.hpg into the PCL file samp.lj
        first rotating image by 90 degrees clockwise and then flipping
        it horizontally. Note if you say `-f2 -r1' the result will be
        the same, i.e., rotation is always done before flipping


 Note


Note the orientation of the HPGL coordinate system on paper:
                Ŀ
                0 y
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                 x                        
                

Vertical flipping means flipping with respect to the image horizontal
central line, while horizontal flipping means flipping with respect to
the image vertical central line.

Though the utility recognizes HPGL commands SP (select pen) and PT (pen
thickness), all the lines are drawn one pixel thickness.  The author is
planning for later to add the following features: line drawing more
than one pixel thickness, circle (CI) and arc (AA) drawing.

The image size is limited by RAM available. No EMS is supported yet,
but this is planned.



You can contact me by phone 
  434-30-61 (Moscow) 
or by mail:
  Russia, 117526, Moscow, Prospect Vernadskogo 101, 
  Institute for Problems in Mechanics, 
