#!/bin/bash

# This shell script acts like a photocopier if you have a laserjet

# A similar program for postscript is in pbm2ps.
# Alternately, use pnmtops instead of pbmtolj in this script.

{ if [ -f "$1" ] ; then
    cat $1 ;
  else
    # -t80 sometimes useful
    umax -l -R300 -w2450 -h3200 -X200 -Y200
  fi
} | pbmtolj -resolution 300

