# phpman > man > ppmtolj(1)

> **TLDR:** Convert a PPM file to an HP LaserJet PCL 5 Color file.
>
- Convert a PPM file to an HP LaserJet PCL 5 Color file:
  `ppmtolj {{path/to/input.ppm}} > {{path/to/output.lj}}`
- Apply a gamma correction using the specified gamma value:
  `ppmtolj {{-g|-gamma}} {{gamma}} {{path/to/input.ppm}} > {{path/to/output.lj}}`
- Specify the required resolution:
  `ppmtolj {{-r|-resolution}} {{75|100|150|300|600}} {{path/to/input.ppm}} > {{path/to/output.lj}}`

*Source: tldr-pages*

---

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



## NAME
       ppmtolj - convert a portable pixmap to an HP LaserJet PCL 5 Color file

## SYNOPSIS
       **ppmtolj** [-gamma _val_] [**-resolution** **75|100|150|300|600**] [**-delta**] [**-float]** **[**-noreset] [_ppmfile_]

## DESCRIPTION
       Reads  a portable pixmap as input and converts it into a color file suitable to be printed by
       an HP color PCL 5 printer.

## OPTIONS
### -delta

### -gamma

### -float
                     ESC&l0E to the output.

### -noreset

### -resolution

## REFERENCES
       HP PCL 5 & Color Reference Guide

## BUGS
       None known.

## AUTHOR
       Copyright (C) 2000 by Jonathan Melvin.(<jonathan.melvin@heywood.co.uk>)



                                             4 Sept 2000                                  [ppmtolj(1)](https://www.chedong.com/phpMan.php/man/ppmtolj/1/markdown)
