save method

save

Saves given PsDocument as EPS file. This method is used only when PsDocument was created from scratch.

def save(self):
    ...

save

Saves given PsDocument as EPS file. This method is used only after updating XMP metadata. It saves initial EPS file with updated existing metadata or new one created while calling GetMetadata method. In the last case all necessary PostScript code and EPS comments are added.

def save(self, eps_stream):
    ...
ParameterTypeDescription
eps_streamio.RawIOBaseStream of output EPS file.

save

Saves PS/EPS file to a device.

def save(self, device, options):
    ...
ParameterTypeDescription
deviceDeviceAn output device.
optionsSaveOptionsContains flags that specify output of errors thrown during conversion.

See Also