OdfAsset.from

OdfAsset from(string path, string mediaType) @safe pure nothrow

Constructs an OdfAsset from a package path and MIME type.

Parameters

pathFull slash-separated path inside the ODF ZIP container.
mediaTypeMIME type of the entry (may be empty for directories).

Returns

A fully initialised OdfAsset with kind, compression, and

preservation flags set according to ODF conventions.