Hypertext Markup Language (HTML) is the predominant markup language for web pages. It was created by the World Wide Web Consortium and WHATWG. It is used by the Chrome, Edge, Firefox, Internet Explorer, Opera, and Safari browsers. For more information, refer to https://www.w3.org/.
The default extensions for this format are: .htm
, .html
, and .xhtml
Support for this file format is available in Document Imaging and above. Unlock RasterSupportType.Document support by calling RasterSupport.SetLicense.
Use this format when you want to rasterize a file. If you want to write HTML, use the LEADTOOLS Document Writer SDK (API or .NET).
LEADTOOLS supports loading this format as a raster image or as an SVG (Scalable Vector Graphics) document.
There are several engines available for loading HTML file format:
You can select the load engine and other HTML load options using the CodecsHtmlLoadOptions.HtmlEngine property.
Some HTML files take a long time because they contain links to web servers that take too long to respond. There are two ways of solving this type of problem:
File constants associated with this file format are:
Constant | Read Support | Write Support | Description |
---|---|---|---|
Htm | Yes | No | HyperText Markup Language |
Required DLL: Leadtools.Codecs.Htm.dll (Leadtools.WebKitEngine.dll is optional and required only when using the WebKit engine, for more information, refer to CodecsHtmlEngine). For a listing of the exact DLLs needed, based on the toolkit version, refer to Files To Be Included With Your Application.
CodecsHtmlLoadOptions.HtmlEngine
CodecsHtmlLoadOptions.DomainWhitelist
WebKit Rendering Engine Support
Extension | Module | Value | Win32 | Win64 | Net32 | Net64 | Linux | Android | Apple | UWP | MimeType | Friendly Name |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Htm | HTML | 369 | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | text/html | HyperText Markup Language |
For a complete list for supported file formats, see Summary of All Supported File Formats.
For details of the file formats supported across products and platforms, refer to File Format Comparison Chart.
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