IXpsOMObjectFactory1 interface (xpsobjectmodel_1.h)

Inherits from IXpsOMObjectFactory.

Adds support for:

Detecting the type of an XPS package.

Loading of an OpenXPS packages into an XPS object model.

Saving an in-memory XPS Object model to an OpenXPS package.

Converting HDPhoto resources into JpegXR resources.

Inheritance

The IXpsOMObjectFactory1 interface inherits from IXpsOMObjectFactory. IXpsOMObjectFactory1 also has these types of members:

Methods

The IXpsOMObjectFactory1 interface has these methods.

 
IXpsOMObjectFactory1::ConvertHDPhotoToJpegXR

Converts an image resource from an HD Photo to a JpegXR.
IXpsOMObjectFactory1::ConvertJpegXRToHDPhoto

Converts an image resource from a JpegXR to an HD Photo.
IXpsOMObjectFactory1::CreatePackage1

The IXpsOMObjectFactory1::CreatePackage1 method (xpsobjectmodel_1.h) creates an IXpsOMPackage1 interface that serves as the root node of an XPS object model document tree.
IXpsOMObjectFactory1::CreatePackageFromFile1

Opens an XPS package file and returns an instantiated XPS document object tree. This method will read a file that contains an XPS document that is of type XPS_DOCUMENT_TYPE_ XPS or XPS_DOCUMENT_TYPE_ OPENXPS.
IXpsOMObjectFactory1::CreatePackageFromStream1

Opens a stream that contains an XPS package and returns an instantiated XPS document object tree.
IXpsOMObjectFactory1::CreatePackageWriterOnFile1

Opens a file for writing the contents of an XPS OM to an XPS package of a specified type. This method produces a package writer for either an MSXPS document or an OpenXPS document.
IXpsOMObjectFactory1::CreatePackageWriterOnStream1

Opens a stream for writing the contents of an XPS OM to an XPS package of a specified type.
IXpsOMObjectFactory1::CreatePage1

The IXpsOMObjectFactory1::CreatePage1 method (xpsobjectmodel_1.h) creates an IXpsOMPage interface, which provides the root node of a tree of objects that represent the contents of a single page.
IXpsOMObjectFactory1::CreatePageFromStream1

Reads the page markup from the specified stream to create and populate an IXpsOMPage1 interface.
IXpsOMObjectFactory1::CreateRemoteDictionaryResourceFromStream1

Loads the remote resource dictionary markup into an unrooted IXpsOMRemoteDictionaryResource interface. The dictionary referenced by the dictionaryMarkupStream parameter can contain markup from either the OpenXPS or the MSXPS namespace.
IXpsOMObjectFactory1::GetDocumentTypeFromFile

Detects the type of XPS document that is stored in the specified file.
IXpsOMObjectFactory1::GetDocumentTypeFromStream

Detects the type of XPS document that is stored in the specified stream.

Remarks

Additional References

The base interface is defined and documented in Windows 7 SDK.

IXpsOMObjectFactory interface

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_1.h

See also

IXpsOMObjectFactory