Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteImageExportExtensions

OfficeIMO.OneNote

Namespace
OfficeIMO.OneNote
Assembly
OfficeIMO.OneNote
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
static

OneNote page rendering and image-export entry points.

Inheritance

  • object
  • OneNoteImageExportExtensions

Methods

SaveAsImage 2 overloads
public static OfficeConversionReport SaveAsImage(OneNotePage document, string path, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Writes the selected page to a file and returns its fidelity report.

Parameters

document OfficeIMO.OneNote.OneNotePage required
path string required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
public static OfficeConversionReport SaveAsImage(OneNotePage document, Stream stream, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Writes the selected page to a caller-owned stream and returns its fidelity report.

Parameters

document OfficeIMO.OneNote.OneNotePage required
stream System.IO.Stream required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
SaveAsImageAsync 2 overloads
public static async Task<OfficeConversionReport> SaveAsImageAsync(OneNotePage document, string path, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously writes the selected page to a file and returns its fidelity report.

Parameters

document OfficeIMO.OneNote.OneNotePage required
path string required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
public static async Task<OfficeConversionReport> SaveAsImageAsync(OneNotePage document, Stream stream, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously writes the selected page to a caller-owned stream and returns its fidelity report.

Parameters

document OfficeIMO.OneNote.OneNotePage required
stream System.IO.Stream required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
SaveAsImages 2 overloads
public static OfficeConversionReport SaveAsImages(OneNoteNotebook document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Saves selected images without retaining payloads and returns aggregate conversion evidence.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
public static OfficeConversionReport SaveAsImages(OneNoteSection document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Saves selected images without retaining payloads and returns aggregate conversion evidence.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
SaveAsImagesAsync 2 overloads
public static async Task<OfficeConversionReport> SaveAsImagesAsync(OneNoteNotebook document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously saves selected images, retaining paths and evidence rather than encoded payloads.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
public static async Task<OfficeConversionReport> SaveAsImagesAsync(OneNoteSection document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously saves selected images, retaining paths and evidence rather than encoded payloads.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
public static OfficeDrawing ToDrawing(OneNotePage page, OneNotePageRenderingOptions? options = null) #

Creates the reusable Drawing scene for a page.

Parameters

page OfficeIMO.OneNote.OneNotePage required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional

Returns

OfficeDrawing
ToImage 3 overloads
public static OfficeImageExportResult ToImage(OneNotePage page, OfficeImageExportFormat format, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Exports a page using the shared five-format result contract.

Parameters

page OfficeIMO.OneNote.OneNotePage required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeImageExportResult
public static OfficeImageExportResult ToImage(OneNotePage document, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders the selected page using the encoding in OfficeImageExportOptions.Format.

Parameters

document OfficeIMO.OneNote.OneNotePage required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeImageExportResult
public static OfficeImageExportResult ToImage(OneNotePage document, OneNotePageRenderingOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #

Renders the selected page and returns its immutable fidelity report.

Parameters

document OfficeIMO.OneNote.OneNotePage required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? required
report OfficeIMO.OfficeConversionReport required
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeImageExportResult
public static async Task<OfficeImageExportResult> ToImageAsync(OneNotePage document, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders the selected page with cancellation and returns the encoded image and its diagnostics.

Parameters

document OfficeIMO.OneNote.OneNotePage required
options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeImageExportResult>
ToImages 6 overloads
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteSection section, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null) #

Exports selected section pages using the shared five-format result contract.

Parameters

section OfficeIMO.OneNote.OneNoteSection required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteNotebook notebook, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null) #

Exports selected notebook pages using the shared five-format result contract.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteNotebook document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch using the encoding and selection in the options.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static void ToImages(OneNoteNotebook document, OfficeImageExportFormat format, OfficeImageExportConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Streams selected images under the shared deadline, admission and aggregate resource limits.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteSection document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch using the encoding and selection in the options.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static void ToImages(OneNoteSection document, OfficeImageExportFormat format, OfficeImageExportConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Streams selected images under the shared deadline, admission and aggregate resource limits.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
ToImagesAsync 6 overloads
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteNotebook document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch asynchronously using the same options and evidence contract.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteNotebook document, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously exports selected images through the shared bounded streaming bridge.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task ToImagesAsync(OneNoteNotebook document, OfficeImageExportFormat format, OfficeImageExportAsyncConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously delivers selected images with backpressure and cooperative cancellation.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportAsyncConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteSection document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch asynchronously using the same options and evidence contract.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteSection document, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously exports selected images through the shared bounded streaming bridge.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task ToImagesAsync(OneNoteSection document, OfficeImageExportFormat format, OfficeImageExportAsyncConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously delivers selected images with backpressure and cooperative cancellation.

Parameters

document OfficeIMO.OneNote.OneNoteSection required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportAsyncConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task