epssetbbox
Adjust EPS bounding box.
Contents
Syntax
epssetbbox(epsfile) epssetbbox(epsfile, outfile) epssetbbox(..., Param1, Value1, Param2, Value2,...)
Description
epssetbbox(epsfile) modifies the bounding box (as a 4-element vector [left bottom right top]) of the EPS file specified by the file name epsfile to the tightest possible according to Ghostscript.
Note: This function removes the embedded preview image (TIFF or WMF).
epssetbbox(epsfile, outfile) saves the modified EPS data to a file specified by the string outfile.
|epssetbbox(..., 'Param1', Value1, 'Param2', Value2,...) sets any of the following option parameters.
Parameters
The following table lists the available optional parameters.
Option |
Value |
Description |
---|---|---|
HorizontalAlignment |
'left | {'center'} | 'right' |
Horizontal alignment of the new bounding box with respect to Ghostscripts tight bounding box. |
Padding |
4-element vector {[0 0 0 0]} |
[left bottom right top] Padding around Ghostscript tight bound. Negative value crops the bound. |
Size |
2-element positive vector |
[W H] Specifies the size (width in |W| and height in |H|) of bounding box. The default is the tightest bound set by Ghostscript. |
Units |
{'color'} | 'gray' | 'mono' |
Axes position units. The units used to interpret the Size and Padding options. |
VerticalAlignment |
'top' | {'middle'} | 'bottom' |
Vertical alignment of the new bounding box with respect to Ghostscripts tight bounding box. |
See Also
Copyright 2012. Takeshi Ikuma. All rights reserved.