crop_eps method

crop_eps

Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %%BoundingBox or new one will be created.

def crop_eps(self, out_eps_file_path, crop_box):
    ...
ParameterTypeDescription
out_eps_file_pathstrThe output EPS file path.
crop_boxlistThe crop box (x0, y0, x, y).

crop_eps

Crops given PsDocument as EPS file. It saves initial EPS file with updated existing %%BoundingBox or new one will be created.

def crop_eps(self, eps_stream, crop_box):
    ...
ParameterTypeDescription
eps_streamio.RawIOBaseStream of output EPS file.
crop_boxlistThe crop box (x0, y0, x, y).

See Also