next up previous contents
Next: PSMERGE, MERGE2, MERGE4 - Up: Additional PostScript Support Previous: Additional PostScript Support   Contents

PSBBOX - Changing the BoundingBox

For example, create test PostScript data with suplane and supswigb via
% suplane | supswigb > junk1.eps
where the ``.eps'' extension is chosen as a reminder that this is encapsulated PostScript. Let's say that there is too much white-space surrounding this figure. To fix this problem, we want to change the size of the BoundingBox at the top of the file. For example
% more junk1.eps
shows the dimensions of the BoundingBox
%!PS-Adobe-2.0 EPSF-1.2
%%DocumentFonts:
%%BoundingBox: 13 31 603 746  
...
We could manually edit this, but with psbbox we can type:
% psbbox < junk1.eps llx=40 lly=80 urx=590 ury=730 > junk2.eps
Original:  %%BoundingBox: 13 31 603 746
Updated:   %%BoundingBox: 40 80 590 730 
to yield a smaller BoundingBox, with correspondingly less white space.



John Stockwell 2007-04-10