| www.delorie.com/gnu/docs/hp2xx/hp2xxinf_3.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
hp2xx for the impatient
This section is intended to give those of you a quick-start who are
quite familiar with traditional UNIX-style programs and with HP-GL and
other graphics formats.
The following examples will give you a good idea of hp2xx's
functionality. See section B. Option summary, the Option Summary, for further details.
hp2xx foo.hp |
Preview of HP-GL graphics in file `foo.hp'. The picture will fit into a square of 200 mm width, assuming that your output device (screen) features 75 DPI resolution (default).
hp2xx -q -d86 -h160 -w220 foo.hp bar.hp |
Multiple-file preview. Option `-q' puts hp2xx into "quiet" mode.
The picture will fit into a rectangle of 220 mm width and 160 mm height,
assuming a 86 DPI resolution of the output device (screen).
hp2xx -t -c12340567 -p12230412 foo.hp |
Preview, size according to original HP-GL data (as on a plotter), with different pen colors and sizes. Color and width according to:
|
hp2xx -m eps -l a.log -h100 -w150 -p542 foo.hp bar.hp |
hp2xx works quietly. Both EPS pictures will fit into a
rectangle of size 150 x 200 mm. The size (width) of
pen 1: 0.5 mm, pen 2: 0.4 mm, pen 3: 0.2 mm, pen 4 ... pen 8: 0.1 mm.
unix% cat foo.hp | hp2xx -m pcl -o30 -O50 -i -F -f- | lpr -P ljet |
In this generic UNIX example, hp2xx reads HP-GL code from stdin,
converts it to HP-PCL which is suitable for direct output on any HP Laserjet
printer, and pipes the output via stdout into the appropriate printer queue.
Option `-f-' forces hp2xx to write to stdout instead of
a file, `-i' initializes the printer before the output,
`-F' sends a FormFeed at the end of output. There will be (additional)
30 mm left and 50 mm top margins. 75 DPI are assumed per default.
hp2xx -m pcx -f foo3.pcx -d300 -h80 -w150 -r90 -P2:4 foo.hp |
PG; increments the internal page counter).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |