Enumeration values that indicate which HTML engine to use when rendering HTML files.
typedef enum _L_HTMLENGINE
{
L_HTMLENGINE_AUTO,
L_HTMLENGINE_IE,
L_HTMLENGINE_WEBKIT,
L_HTMLENGINE_WEBVIEW2,
} L_HTMLENGINE;
Use the default engine for the platform
Use Internet Explorer
Use the WebKit rendering engine (requires additional download)
Use the Microsoft Edge WebView2 rendering engine
LEADTOOLS currently supports the following HTML rendering engines:
This engine uses the default Internet Explorer rendering engine that comes with the Windows operating system.
This engine is only supported by the Windows platform.
This engine uses the WebKit rendering engine. For more information, refer to WebKit Rendering Engine Support.
The WebKit rendering engine is supported by the Windows, Linux and macOS platforms.
This engine uses the Microsoft Edge WebView2 rendering engine. The WebView2 rendering engine is supported by some Windows platforms. It comes preinstalled with Windows 10 and 11, but can be installed on earlier versions (Windows 7, 8 and some Windows Server versions) from Download the WebView2 Runtime. Microsoft Edge WebView2 contains the full list of platforms that support WebView2.
The WebView2 requires the ability to load PDF files. So you must unlock L_SUPPORT_RASTER_PDF_READ
or L_SUPPORT_PDF_ADVANCED
.
The following behavior occurs when L_HTMLENGINE_AUTO (the default value) is used:
Windows:
LEADTOOLS will check if the Microsoft Edge WebView2 engine is installed on your computer and if L_SUPPORT_RASTER_PDF_READ
or L_SUPPORT_PDF_ADVANCED
are unlocked. If the Edge WebView2 engine is available and PDF support is unlocked, L_HTMLENGINE_WEBVIEW2
will be used.
LEADTOOLS will search for ltWebKitEngine
and wkhtmltox.dll
. If found, then L_HTMLENGINE_WEBKIT
is used.
If the first two are unavailable, L_HTMLENGINE_IE
is used.
Linux/macOS: LEADTOOLS will always search for ltWebKitEngine
and wkhtmltox.so
. If not found, loading of HTML is not supported.
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