odfDocumentTypeFromMime

fnOdfDocumentType odfDocumentTypeFromMime(string mimeType) @safe pure nothrow

Attempts to detect the document type from a MIME type string.

Parameters

mimeTypeThe MIME type to look up.

Returns

The matching OdfDocumentType, or OdfDocumentType.NONE if the

MIME type is not recognized.