epsgetbbox

Retrieve EPS bounding box.

Contents

Syntax

epsgetbbox(epsfile)
epsgetbbox(epsfile, mode)
epsgetbbox(epsfile, mode, units)

Description

epsgetbbox(epsfile) returns the current bounding box (as a 4-element vector [left bottom right top]) of the EPS file specified by the file name epsfile.

epsgetbbox(epsfile, mode) specifies which bounding box to return. If mode is 'ghostcript', the function returns the tight bounding box determined by Ghostscript. The default mode is 'current', which returns the bounding box specified as-is in the EPS file.

epsgetbbox(epsfile, mode, units) to specify the bounding box unit in units. units must be 'inches', 'centimeters', or 'points'. The default is 'inches'.

Copyright 2012. Takeshi Ikuma. All rights reserved.