Поделиться через


IXpsOMObjectFactory1 interface

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.

When to implement

Never.

Members

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

  • Methods

Methods

The IXpsOMObjectFactory1 interface has these methods.

Method Description
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::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::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.

https://msdn.microsoft.com/en-us/library/dd372509(VS.85).aspx

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

XpsObjectModel_1.h

IDL

XpsObjectModel.idl

Library

None

See also

IXpsOMObjectFactory