XpsDocumentBuilder

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

NameTypeAccessDescription
title``ReadGets the title.
pageslist[XpsFixedPage]ReadGets the pages.

Methods

SignatureDescription
__init__(title: str | None)
add_page(width: float, height: float)XpsFixedPageAppend 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()XpsPackageSerialize the current pages into a new XPS package.

See Also