# phpman > man > pbmtolj(1)

> **TLDR:** Convert a PBM file to an HP LaserJet file.
>
- Convert a PBM file to an HP LaserJet file:
  `pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}`
- Compress the output file using the specified method:
  `pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}`
- Specify the required resolution:
  `pbmtolj {{-r|-resolution}} {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}`

*Source: tldr-pages*

---

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



## NAME
       pbmtolj - convert a portable bitmap into HP LaserJet format


## SYNOPSIS
       **pbmtolj**  [**-resolution**  _N_]  [**-float**]  [**-noreset**]  [**-packbits**]  [**-delta**]  [**-compress**] [_pbmfile_]
       [**-copies** _N_]


## DESCRIPTION
       Reads a PBM image as input.  Produces HP LaserJet data as output.

       Note that there is no ljtopbm tool.


## OPTIONS
### -resolution
              Specifies the resolution of the output device, in dpi.  Typical values  are  75,  100,
              150, 300, and 600.  The default is 75.

### -float
              to the output file.

### -noreset
              Prevents pbmtolj from writing the reset sequences to the beginning and end of the out‐
              put file.

### -packbits
              Enables use of TIFF packbits compression.

### -delta

### -compress
              Enables use of both TIFF packbits, and delta-between-rows compression.

### -copies
              Specifies  the the number of copies. The default is 1.  This option controls the "num‐
              ber of copies" printer control; **pbmtolj** generates only one copy of the image.

       All flags can be abbreviated to their shortest unique prefix.


## SEE ALSO
       [**pbm**(5)](https://www.chedong.com/phpMan.php/man/pbm/5/markdown)


## AUTHOR
       Copyright (C) 1988 by Jef Poskanzer and Michael Haberler.  **-float** and **-noreset** options  added
       by Wim Lewis.  **-delta,** **-packbits,** and **-compress** options added by Dave Platt.



                                            22 April 2000                                 [pbmtolj(1)](https://www.chedong.com/phpMan.php/man/pbmtolj/1/markdown)
