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
| Name | Type | Access | Description |
|---|---|---|---|
parts | dict[str, bytes] | Read | Gets the parts. |
Methods
| Signature | Description |
|---|---|
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) → bytes | Read a package part by name. |
has_part(part_name: str) → bool | Check whether a package part exists. |