Class
OfficeDocumentAssetDataUri
OfficeIMO.Reader
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
- Read result that owns the assets.
- options OfficeIMO.Reader.OfficeDocumentAssetDataUriOptions? = null
- 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
- Asset to encode.
- dataUri string?
- Data URI when one could be built.
- maxInlineBytes long? = 65536
- Maximum payload size to inline. Set to null for no size cap.
Returns
bool