XpsDocument constructor

init

Creates empty XPS document with default page size.

def __init__(self):
    ...

init

Opens an existing XPS document located at the path.

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

init

Opens an existing document located at the path as XPS document.

def __init__(self, path, options):
    ...
ParameterTypeDescription
pathstrLocation of the document.
optionsLoadOptionsDocument loading options.

init

Loads an existing document stored in the stream as XPS document.

def __init__(self, stream, options):
    ...
ParameterTypeDescription
streamio.RawIOBaseDocument stream.
optionsLoadOptionsDocument loading options.

See Also