Compartilhar via


XPS Object Model Overview

The XPS Document API implements the XPS object model and enables developers to create an XPS OM, manipulate XPS document content in unmanaged programs, and save the XPS OM to a file or stream as an XPS document. Developers of XPSDrv filter pipeline modules can also use the XPS Document API to manipulate XPS document content in an XPSDrv printer driver filter.

Overview

The XPS object model is the information model of an XPS document. The information model of the XPS document is separate from the markup model that is used inside the document parts. The XPS object model describes the organization of the internal components that make up an XPS document, and the markup model describes the contents of those components.

In a program, the XPS object model is instantiated as an XPS OM. The XPS OM is essentially an in-memory version of an XPS document's contents. While similar in logical organization to an XPS document, an XPS OM is not, technically, an XPS document until it has been serialized to a file or a stream.

The exact structure of the markup is not available to the XPS OM when an XPS document is deserialized from markup to an XPS OM. For example, whether the property was represented as an element or an attribute in the markup, the property value of a document object is presented by the XPS OM in exactly the same way.

The XPS Document API can be divided into the following categories:

  • XPS OM Trunk Interfaces

    The trunk interfaces provide access to the top-level components of the XPS document structure. These interfaces also provide the means to serialize an XPS OM and deserialize an XPS document.

  • XPS OM Page Interfaces

    The page interfaces provide access to the contents of a page in an XPS document. The interfaces that describe the content of the page are also included with the page interfaces.

  • XPS OM Digital Signatures

    The XPS OM supports digital signatures; however digital signatures in an XPS document can also be accessed directly without the need to create an XPS OM. For more information on how to access XPS digital signatures without an XPS OM, see XPS Digital Signatures.

  • XPS OM Print Ticket Interfaces

    XPS documents support print tickets at the package (job), document, and page level. Print tickets contain information about how to format document content for printing or viewing.

In This Section

XPS OM Trunk Interfaces

XPS OM Page Interfaces

XPS OM Print Ticket Interfaces

 

Other Related Topics

Initialize an XPS OM

XPS OM Digital Signatures

XPS Document Programming Samples

XPS Document Programming Reference

XML Paper Specification

 

 

Send comments about this topic to Microsoft

Build date: 6/4/2010