Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeDocumentAssetDataUri

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
static

Opt-in data URI helpers for materializable read-result assets.

Inheritance

  • object
  • OfficeDocumentAssetDataUri

Methods

public static IReadOnlyDictionary<string, string> BuildAssetDataUriMap(OfficeDocumentReadResult result, OfficeDocumentAssetDataUriOptions? options = null) #

Builds a data URI map keyed by asset id for materializable assets in a read result.

Parameters

result OfficeIMO.Reader.OfficeDocumentReadResult required
Read result that owns the assets.
options OfficeIMO.Reader.OfficeDocumentAssetDataUriOptions? = null optional
Data URI options.

Returns

IReadOnlyDictionary<string, string>
public static bool TryBuildDataUri(OfficeDocumentAsset asset, out string? dataUri, long? maxInlineBytes = 65536) #

Builds a data URI for an asset payload when the payload exists and fits the configured size cap.

Parameters

asset OfficeIMO.Reader.OfficeDocumentAsset required
Asset to encode.
dataUri string? required
Data URI when one could be built.
maxInlineBytes long? = 65536 optional
Maximum payload size to inline. Set to null for no size cap.

Returns

bool