Click or drag to resize
Pdf Library for .NET

HtmlToImage Class

Html to Image Converter. This class offers the API needed to create images in various formats from a specified web page or html string.
Inheritance Hierarchy
SystemObject
  SelectPdfHtmlToImage

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax
public class HtmlToImage

The HtmlToImage type exposes the following members.

Constructors
  NameDescription
Public methodHtmlToImage
Creates an html to image converter. Width and height of the web page are automatically detected.
Public methodHtmlToImage(Int32)
Creates an html to image converter. The width of the web page is specified. The height of the web page is automatically detected.
Public methodHtmlToImage(Int32, Int32)
Creates an html to image converter for a web page with the specified width and height.
Top
Properties
  NameDescription
Public propertyAuthenticationPassword
Specifies the password if the web page being converted requires authentication.
Public propertyAuthenticationUsername
Specifies the username if the web page being converted requires authentication.
Public propertyBlinkEngineLaunchMaxTries
Blink engine process launch tries.
Public propertyBlinkEngineLaunchTimeout
Blink engine process launch timeout.
Public propertyBlinkEnginePath
Gets or sets the full path (excluding the chrome.exe file name) of the Blink html rendering engine binaries.
Public propertyBlinkEngineTemporaryFilesPath
Gets or sets the full path of a folder where Blink html rendering engine will write temporary files.
Public propertyClickElementsDelayAfter
Delay in miliseconds, after element click.
Public propertyClickElementsDelayBefore
Delay in miliseconds, before element click.
Public propertyClickElementsSelectors
Specifies elements from the web page that will be clicked before converting the page.
Public propertyCustomCSS
Use this property to specify some CSS styles that will be injected into the page that is converted.
Public propertyDenyLocalFileAccess
A flag indicating if local files can be loaded during the conversion. The default value is False and local files can be loaded.
Public propertyExternalBrowserEndpoint
External browser service.
Public propertyHttpCookies
Gets the collection of custom HTTP cookies used for the conversion.
Public propertyHttpHeaders
Get the collection of custom HTTP headers used for the conversion.
Public propertyHttpPostParameters
Gets the collection of custom HTTP POST parameters used for the conversion.
Public propertyJavaScriptEnabled
Enable scripts when rendering the url or html string.
Public propertyLazyImagesLoadingDelay
Delay per page, in miliseconds, for lazy images loading.
Public propertyLazyImagesLoadingEnabled
Enables a delay mechanism to allow images to fully load.
Public propertyLFN
Internal use only.
Public propertyLoginOptions
Handle custom page login.
Public propertyMaxPageLoadTime
The web page navigation timeout in seconds.
Public propertyMinPageLoadTime
An additional time in seconds to wait for asynchronous items to be loaded before the web page is rendered.
Public propertyPluginsEnabled
A flag indicating if plugins (like Flash players) are enabled in the converter.
Public propertyPostLoadingScript
Use this property to specify some JavaScript code that will be injected into the page that is converted and executed after the page was fully loaded.
Public propertyPostLoadingScriptDelayAfter
Delay in miliseconds, after post page loading javascript injection.
Public propertyProxyOptions
Gets a reference to an object containing the proxy settings used to access the web page that is being converted.
Public propertyRenderingEngine
Gets or sets the rendering engine used by the converter to load and render the HTML. The possible values are WebKit, WebKitRestricted and Blink. The Webkit rendering engine is internal and renders similar to Apple's Safari. For Blink, Chromium binaries must be also installed.
Public propertySecureProtocol
Protocol used for secure (HTTPS) connections.
Public propertyStartupMode
Use this property to specify how the conversion starts.
Public propertyStartupScript
Use this property to specify some JavaScript code that will be injected into the page that is converted.
Public propertyVisibleWebElementId
Use this property to convert only a certain section of the web page, specified by the html element ID.
Public propertyWebPageFixedSize
Controls whether the web page is rendered with a fixed size internal browser or the size automatically extends to make the whole content visible.
Public propertyWebPageHeight
Gets or sets the web page height. If the width was not set, this property has no effect.
Public propertyWebPageWidth
Gets or sets the web page width.
Top
Methods
  NameDescription
Public methodConvertHtmlString(String)
Gets an Image object from the specified html string.
Public methodConvertHtmlString(String, String)
Gets an Image object from the specified html string.
Public methodConvertUrl
Gets an Image object from the specified url.
Top
See Also