This program is part of Netpbm.
pbmtomacp reads a PBM image as input and produces a MacPaint file as output.
If you do not specify pbmfile, pbmtomacp uses Standard Input.
The generated file is only the data fork of a picture. You will need a program such as mcvert to generate a Macbinary or a BinHex file that contains the necessary information to identify the file as a PNTG file to MacOS.
-l, -r, -b, and -t let you define a square into the pbm file, that must be converted. Default is the whole file. If the file is too large for a MacPaint-file, the bitmap is cut to fit from ( left, top ).