XpsDocumentBuilder
Overview
XpsDocumentBuilder is a class in Aspose.Page FOSS for Python.
Builder for XPS document creation/editing.
This class provides 5 methods for working with XpsDocumentBuilder objects in Python programs.
Available methods include: __init__, add_page, insert_page, remove_page, to_package.
All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package.
Properties: pages, title.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
title | `` | Read | Gets the title. |
pages | list[XpsFixedPage] | Read | Gets the pages. |
Methods
| Signature | Description |
|---|---|
__init__(title: str | None) | |
add_page(width: float, height: float) → XpsFixedPage | Append a new fixed page and return it. |
insert_page(index: int, page: XpsFixedPage) | Insert a fixed page at the given index. |
remove_page(index: int) | Remove a fixed page at the given index. |
to_package() → XpsPackage | Serialize the current pages into a new XPS package. |