IXpsDocumentPackageTarget3D::GetXpsOMPackageWriter3D method

Gets a new IXpsOMPackageWriter3D object for the document package.

Syntax

HRESULT GetXpsOMPackageWriter3D(
  IOpcPartUri           *documentSequencePartName,
  IOpcPartUri           *discardControlPartName,
  IOpcPartUri           *modelPartName,
  IStream               *modelData,
  IXpsOMPackageWriter3D **packageWriter
);

Parameters

documentSequencePartName

The root part of XPS payload.

discardControlPartName

The discard control part for the XPS payload.

modelPartName

Name of the part which will hold the 3D model. The part’s content type is “application/vnd.ms-package.3dmanufacturing-3dmodel+xml”. It is linked from package root with relationship type “http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel” .

modelData

A readable stream which holds 3D model description. The model description may be UTF16 encoding of XML document, but for XPS OM and XpsPrint, this is a BLOB passing through. The GetXpsOMPackageWriter3D method attempts to move the provided stream’s read pointer to the beginning of the stream, but the method call will not fail if the stream does not support the Seek method.

packageWriter

Returns the writer which may be used to send XPS content and textures for the 3D model.

Return Value

Returns the appropriate HRESULT error code.

Requirements

   
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_2.h

See Also

IXpsDocumentPackageTarget3D