Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

DjVuDocument

OfficeIMO.DjVu

Namespace
OfficeIMO.DjVu
Assembly
OfficeIMO.DjVu
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

An owned, immutable snapshot of a DjVu document and its explicitly resolved components.

Inheritance

  • object
  • DjVuDocument

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 8

Methods

Load 3 overloads
public static DjVuDocument Load(byte[] bytes, DjVuLoadOptions? options = null, CancellationToken cancellationToken = default) #

Loads and copies a DjVu file's bytes, applying aggregate document limits.

Parameters

bytes byte[] required
options OfficeIMO.DjVu.DjVuLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static DjVuDocument Load(Stream stream, DjVuLoadOptions? options = null, CancellationToken cancellationToken = default) #

Loads from the current position of a readable stream, including non-seekable streams. Leaves the stream open.

Parameters

stream System.IO.Stream required
options OfficeIMO.DjVu.DjVuLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static DjVuDocument Load(string path, DjVuLoadOptions? options = null, CancellationToken cancellationToken = default) #

Loads a file and closes its handle before returning. Component IDs never trigger implicit file access.

Parameters

path string required
options OfficeIMO.DjVu.DjVuLoadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Properties

public IReadOnlyList<DjVuPage> Pages { get; } #

Pages in the source directory's order.

public IReadOnlyList<DjVuBookmark> Bookmarks { get; } #

Stored document outline entries in source order.

public string? BookmarkDiagnostic { get; } #

A malformed outline diagnostic; null for absent or valid outlines.

public string SourceSha256 { get; } #

SHA-256 of the exact primary input snapshot. Resolved indirect components are separate inputs.

public long SourceLengthBytes { get; } #

Length of the exact primary input snapshot, excluding explicitly resolved components.

Extension Methods

public static OfficeConversionReport SaveAsImages(DjVuDocument document, string folderPath, OfficeImageExportOptions? options = null, DjVuRenderOptions? renderOptions = null, CancellationToken cancellationToken = default) #

Saves selected pages with atomic files, bounded output and fidelity acceptance.

Parameters

document OfficeIMO.DjVu.DjVuDocument required
folderPath string required
options OfficeIMO.Drawing.OfficeImageExportOptions? = null optional
renderOptions OfficeIMO.DjVu.DjVuRenderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
public static async Task<OfficeConversionReport> SaveAsImagesAsync(DjVuDocument document, string folderPath, OfficeImageExportOptions? options = null, DjVuRenderOptions? renderOptions = null, CancellationToken cancellationToken = default) #

Saves selected pages asynchronously without retaining completed image payloads.

Parameters

document OfficeIMO.DjVu.DjVuDocument required
folderPath string required
options OfficeIMO.Drawing.OfficeImageExportOptions? = null optional
renderOptions OfficeIMO.DjVu.DjVuRenderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
ToImages 2 overloads
public static IReadOnlyList<OfficeImageExportResult> ToImages(DjVuDocument document, OfficeImageExportOptions? options = null, DjVuRenderOptions? renderOptions = null, CancellationToken cancellationToken = default) #

Renders selected source pages in caller order, retaining source and encoding diagnostics.

Parameters

document OfficeIMO.DjVu.DjVuDocument required
options OfficeIMO.Drawing.OfficeImageExportOptions? = null optional
renderOptions OfficeIMO.DjVu.DjVuRenderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static void ToImages(DjVuDocument document, OfficeImageExportConsumer consumer, OfficeImageExportOptions? options = null, DjVuRenderOptions? renderOptions = null, CancellationToken cancellationToken = default) #

Streams selected images without retaining earlier encoded payloads.

Parameters

document OfficeIMO.DjVu.DjVuDocument required
consumer OfficeIMO.Drawing.OfficeImageExportConsumer required
options OfficeIMO.Drawing.OfficeImageExportOptions? = null optional
renderOptions OfficeIMO.DjVu.DjVuRenderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(DjVuDocument document, OfficeImageExportOptions? options = null, DjVuRenderOptions? renderOptions = null, CancellationToken cancellationToken = default) #

Renders selected source pages asynchronously with shared cancellation and deadlines.

Parameters

document OfficeIMO.DjVu.DjVuDocument required
options OfficeIMO.Drawing.OfficeImageExportOptions? = null optional
renderOptions OfficeIMO.DjVu.DjVuRenderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>