# phpman > man > ppmtopj(1)

> **TLDR:** Convert a PPM file to an HP PaintJet file.
>
- Convert a PPM file to an HP PaintJet file:
  `ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}`
- Move the image in the x and y direction:
  `ppmtopj {{-x|-xpos}} {{dx}} {{-y|-ypos}} {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}`
- Explicitly specify a gamma value:
  `ppmtopj {{-g|-gamma}} {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}`

*Source: tldr-pages*

---

[ppmtopj(1)](https://www.chedong.com/phpMan.php/man/ppmtopj/1/markdown)                             General Commands Manual                            [ppmtopj(1)](https://www.chedong.com/phpMan.php/man/ppmtopj/1/markdown)



## NAME
       ppmtopj - convert a portable pixmap to an HP PaintJet file

## SYNOPSIS
       **ppmtopj**  [-gamma  _val_]  [**-xpos**  _val_]  [**-ypos** _val_] [**-back** **dark**|**lite**] [**-rle**] [**-center**] [**-render**
       **none|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither**] [_ppmfile_]

## DESCRIPTION
       Reads a portable pixmap as input and converts it into a format suitable to be printed  by  an
       HP PaintJet printer.

       For  best results, the input file should be in 8-color RGB form; i.e. it should have only the
       8 binary combinations of full-on and full-off primaries.  You could get this by  sending  the
       input file through _ppmquant_ _-map_ with a map file such as:
           P3
           8 1
           255
           0 0 0      255 0 0    0 255 0    0 0 255
           255 255 0  255 0 255  0 255 255  255 255 255
       Or else you could use use _ppmdither_ _-red_ _2_ _-green_ _2_ _-blue_ _2._

## OPTIONS
### -rle

### -back
                     pated to the foreground.

### -render

### -gamma

### -center

### -xpos

### -ypos

## REFERENCES
       HP PaintJet XL Color Graphics Printer User's Guide

## SEE ALSO
       [pnmdepth(1)](https://www.chedong.com/phpMan.php/man/pnmdepth/1/markdown), [ppmquant(1)](https://www.chedong.com/phpMan.php/man/ppmquant/1/markdown), [ppmdither(1)](https://www.chedong.com/phpMan.php/man/ppmdither/1/markdown), [ppm(5)](https://www.chedong.com/phpMan.php/man/ppm/5/markdown)

## BUGS
       Most of the options have not been tested because of the price of the paper.

## AUTHOR
       Copyright (C) 1991 by Christos Zoulas.



                                            13 July 1991                                  [ppmtopj(1)](https://www.chedong.com/phpMan.php/man/ppmtopj/1/markdown)
