foo2xqx - Convert Ghostscript pbmraw into a XQX printer stream
| 1 | off | 2 | long edge | 3 | short edge |
| Media | M1005 | |
| standard | 1 | |
| transparency | 2 | |
| envelope | 257 | |
| letterhead | 259 | |
| thick | 261 | |
| postcard | 262 | |
| labels | 263 | |
| 1 | letter | 9 | A4 |
| 5 | legal | 11 | A5 |
| 7 | executive | 13 | B5 |
| 20 | env #10 | 27 | env DL |
| 28 | env C5 | 34 | env B5 |
| 37 | env Monarch |
| 1 | upper | 4 | manual |
| 2 | lower | 7 | auto |
| 0 | don't send any logical clipping amounts |
| 1 | only send Y clipping amount |
| 2 | only send X clipping amount |
| 3 | send both X and Y clipping amounts |
| 1 | Cyan |
| 2 | Magenta |
| 3 | Yellow |
| 4 | Black |
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw
-sOutputFile=- - < testpage.ps
| foo2xqx -r1200x600 -g10200x6600 -p1 >testpage.zm