save method

save

Saves XPS document to XPS file located at the path.

def save(self, path):
    ...
ParameterTypeDescription
pathstrLocation of the document.

save

Saves XPS document to stream.

def save(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseStream XPS document to be saved into.

save

Saves the document using the Device instance.

def save(self, device, options):
    ...
ParameterTypeDescription
deviceDeviceThe Device instance.
optionsSaveOptionsDocument saving options.

See Also