resize_eps method

resize_eps

Resizes given PsDocument as EPS file. This method is used only after extracting EPS size. It saves initial EPS file with updated existing %%BoundingBox or new one will be created. Page transformation matrix also will be set.

def resize_eps(self, out_eps_file_path, new_size_in_units, units):
    ...
ParameterTypeDescription
out_eps_file_pathstrThe output EPS file path.
new_size_in_unitsaspose.pydrawing.SizeFNew size of EPS image in assigned units.
unitsUnitsThe units of the new size. Can be points, inches, millimeters, centimeters and percents of initial size.

resize_eps

Resizes given PsDocument as EPS file. This method is used only after extracting EPS size. It saves initial EPS file with updated existing %%BoundingBox or new one will be created. Page transformation matrix also will be set.

def resize_eps(self, eps_stream, new_size_in_units, units):
    ...
ParameterTypeDescription
eps_streamio.RawIOBaseStream of output EPS file.
new_size_in_unitsaspose.pydrawing.SizeFNew size of EPS image in assigned units.
unitsUnitsThe units of the new size. Can be points, inches, millimeters, centimeters and percents of initial size.

See Also