API Reference
Class
OfficeDocumentAssetDataUri
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) #Returns:
IReadOnlyDictionary<String, String>Builds a data URI map keyed by asset id for materializable assets in a read result.
Parameters
- result OfficeIMO.Reader.OfficeDocumentReadResult
- Read result that owns the assets.
- options OfficeIMO.Reader.OfficeDocumentAssetDataUriOptions = null
- Data URI options.
public static Boolean TryBuildDataUri(OfficeDocumentAsset asset, out String dataUri, Nullable<Int64> maxInlineBytes = 65536) #Returns:
BooleanBuilds a data URI for an asset payload when the payload exists and fits the configured size cap.
Parameters
- asset OfficeIMO.Reader.OfficeDocumentAsset
- Asset to encode.
- dataUri System.String@
- Data URI when one could be built.
- maxInlineBytes System.Nullable{System.Int64} = 65536
- Maximum payload size to inline. Set to null for no size cap.