pbmtolj(1) - man - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool | Cheat Sheet


TLDR: pbmtolj (tldr-pages)

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}}
pbmtolj(1)                             General Commands Manual                            pbmtolj(1)



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 Suppresses  positioning information.  The default is to write the sequence ESC & l 0 E
              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 Enables use of delta-between-rows compression.

       -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)


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)

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 16:29 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!