XpsPackage

Overview

XpsPackage is a class in Aspose.Page FOSS for Python.

Represents an XPS package.

This class provides 4 methods for working with XpsPackage objects in Python programs. Available methods include: from_bytes, from_file, has_part, read. All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package. Properties: parts.

Properties

NameTypeAccessDescription
partsdict[str, bytes]Read/WriteGets or sets the parts.

Methods

SignatureDescription
from_bytes(data: bytes) → "XpsPackage"Create an XPS package from bytes.
from_file(path: str) → "XpsPackage"Create an XPS package from a file path.
read(part_name: str) → bytesRead a package part by name.
has_part(part_name: str) → boolCheck whether a package part exists.

See Also

 English