The code gallery for the XPS APIs in Windows 7 is now live on MSDN. The gallery has three code samples for using the new APIs:
- Basics of working with XPS Documents: loading, modifying and saving.
- Rollup: combing content from different documents.
- Flow Text: using the text capabilities exposed by DirectWrite to generate fixed layout XPS Document content from flow text.