top image
home  /  pages  /  tech tips  /  contact about

Cropping whitespace in PostScript

Problem

PostScript images are too large, take up too much space in LaTeX document.

Keywords

PostScript, Encapsulated PostScript, bounding box, white space, crop, cropping, clipping, autocrop.

Solution

apt-get install ps2eps
ps2eps -B -C < infile.ps > outfile.eps

-B ignores original bounding box
-C inserts postscript code to clip white space

URL: https://thomer.com/howtos/crop_whitespace_in_ps.html
Copyright © 1994-2022 by Thomer M. Gil
Updated: 2004/09/03