The optional mime type of the document being loaded.
public string MimeType { get; set; }
public:
property String^ MimeType
{
String^ get()
void set(String^ value)
}
public int getMimeType()
public void setMimeType(int value)
MimeType # get and set (LoadDocumentOptions)
Optional mime type of the document being loaded. The default value is null.
The document engine tries to determine the document's image format from the data itself since most document formats such as PDF, TIFF, PNG, DOCX, etc., contain a unique signature that can be parsed. Other file formats such as Text do not. If parsing the signature fails, the engine tries to determine the document's type from the file extension. For example, if the document has the extension .txt or .text, and parsing for its signature fails, then the engine will assume the document is a text file.
If, however, the file name or URL does not contain a valid signature, (for instance, if it is being returned from dynamically-generated content by a web server or from a cache item), then the above mechanism will fail.
In such cases, the mime type (if available) can be set in MimeType. The engine will then use this information if all of the above have failed to load the document. In the case of a text file, set MimeType to "text/plain" and the load operation should succeed. The mime type that corresponds to a particular LEADTOOLS RasterImageFormat constant can be obtained by calling the RasterCodecs.GetMimeType helper method.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document