Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PublisherDocumentReaderExtensions

OfficeIMO.Reader.Publisher

Namespace
OfficeIMO.Reader.Publisher
Assembly
OfficeIMO.Reader.Publisher
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

Projects a loaded Publisher document into the shared Reader model.

Inheritance

  • object
  • PublisherDocumentReaderExtensions

Methods

public static OfficeDocumentReadResult ToOfficeDocumentReadResult(PublisherDocument document, string? sourceName = null, ReaderOptions? readerOptions = null, ReaderPublisherOptions? publisherOptions = null, CancellationToken cancellationToken = default) #

Reads the document's current stories, tables, page inventory and requested image payloads.

Parameters

document OfficeIMO.Publisher.PublisherDocument required
The caller-owned document, including any in-memory edits.
sourceName string? = null optional
Logical citation name. Omitted names use document.pub.
readerOptions OfficeIMO.Reader.ReaderOptions? = null optional
Projection and output budgets, copied for this operation.
publisherOptions OfficeIMO.Reader.Publisher.ReaderPublisherOptions? = null optional
Publisher semantic projection settings, copied for this operation.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation for the projection.

Returns

OfficeDocumentReadResult