# man > ppmtopjxl(1)

> **TLDR:** Convert a PPM image into an HP PaintJet XL PCL file.
>
- Convert a PPM image into an PJXL file:
  `ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
- Resize the input image:
  `ppmtopjxl {{-xsi|-xsize}} {{10cm}} {{-ysi|-ysize}} {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
- Shift the input image:
  `ppmtopjxl {{-xsh|-xshift}} {{10pt}} {{-ysh|-yshift}} {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
- Do not use the normal TIFF 4.0 compression method:
  `ppmtopjxl {{-n|-nopack}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`

*Source: tldr-pages*

---

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

## NAME
       ppmtopjxl - convert a PPM image to an HP PaintJet XL PCL file


## SYNOPSIS
       ppmtopjxl  [**-nopack**]  [**-gamma  _**n_]  [**-presentation**]  [**-dark**]  [**-diffuse**]  [**-cluster**] [**-dither**]
       [**-xshift   _**s_]   [**-yshift   _**s_]   [**-xshift   _**s_]   [**-yshift   _**s_]   [{**-xsize**|**-width**|**-xscale**}   _s_]
       [{**-ysize**|**-height**|**-yscale**} _s_] [_ppmfile_]


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **ppmtopjxl  **reads  a PPM image as input and produces a PCL file suitable for printing on an HP
       PaintJet XL printer as output.

       The generated file is not suitable for printing on a normal PrintJet  printer.   The  **-nopack**
       option  generates  a  file which does not use the normal TIFF 4.0 compression method and thus
       might be printable on a normal PaintJet printer (not an XL).


## OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  **-quiet**,
       see ]8;;index.html#commonoptions\ Common Options]8;;\ ), **ppmtopjxl **recognizes the following command line options:




### -nopack

              Generate  a  file which does not use the normal TIFF 4.0 compression method. This file
              might be printable on a normal PaintJet printer (not an XL).


### -gamma

              Set the gamma correction for the image. The useful range for the PaintJet  XL  is  ap‐
              proximately 0.6 to 1.5.


### -dither -cluster -diffuse

              Alter  the  rendering algorithm used for images.  These options select ordered dither‐
              ing, clustered ordered dithering, or error diffusion respectively.


### -dark

              Enhance images with a dark background when they are reduced in size.


### -presentation

              Turn on presentation mode, in which two passes are made over the paper to increase ink
              density.  You should use this only for images where quality is critical.


### -xsize -ysize

              Resize the image.  The parameter to either of these options is interpreted as the num‐
              ber of dots to set the width or height to, but you may append an optional dimension of
              `**pt**' (points), `**dp**' (decipoints), `**in**' (inches), or `**cm**' (centimetres).  If you  spec‐
              ify only one dimension, **ppmtopjxl **will scale the other one appropriately.


### -width -height

              Synonyms of **-xsize **and **-ysize**.


### -xscale -yscale

              Alternatives to **-xsize **and **-ysize**.  Scale the image by a simple factor.


### -xshift -yshift

              Shift  the image on the page.  These move the image the specified dimensions right and
              down.




## SEE ALSO
       [**pnmtopclxl**(1)](https://www.chedong.com/phpMan.php/man/pnmtopclxl/1/markdown), [**pbmtolj**(1)](https://www.chedong.com/phpMan.php/man/pbmtolj/1/markdown), [**ppmtolj**(1)](https://www.chedong.com/phpMan.php/man/ppmtolj/1/markdown), [**ppmtopj**(1)](https://www.chedong.com/phpMan.php/man/ppmtopj/1/markdown), [**thinkjettopbm**(1)](https://www.chedong.com/phpMan.php/man/thinkjettopbm/1/markdown), [**ppm**(1)](https://www.chedong.com/phpMan.php/man/ppm/1/markdown)


## AUTHOR
       Angus Duggan

## DOCUMENT SOURCE
       This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master
       documentation is at

              **<http://netpbm.sourceforge.net/doc/ppmtopjxl.html>**

netpbm documentation                        14 March 1991                   _Ppmtopjxl_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
