Using XPS Document API

This section describes how to use the XPS Document API to perform programming tasks.

For examples of how to use the XPS Document API in a program, see the XPS Document API Programming Tasks section.

For information about how to use the XPS Object Model and how it is implemented by the XPS Document API, see About XPS Document API.

Getting Started with the XPS Document API

Before you start using the XPS Document API, make sure that you are familiar with the following programming topics:

COM Programming

Error Handling in COM

When using the XPS Document API, you might also want to use the following technologies:

DirectWrite

XPS Print API

XPS Digital Signature API

XPS Document API Programming Tasks

The topics in this section describe how to use the XPS Document API in a program and demonstrate how to perform some common programming tasks.

The XPS Document API uses collections to work with groups of interfaces. Working with XPS OM Collection Interfaces describes how to program with these collections.

The Common XPS Document Programming Tasks include the following:

Initialize an XPS OM

Create a Blank XPS OM

Read an XPS Document into an XPS OM

Navigate the XPS OM

Write Text to an XPS OM

Draw Graphics in an XPS OM

Place Images in an XPS OM

Write an XPS OM to an XPS Document

Print an XPS OM

The Advanced XPS Document Programming Tasks include the following:

Merge XPS Documents

Processing XPS Documents in an XPSDrv Filter

XPS Document API Reference

XML Paper Specification