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: 17.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
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
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 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 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 propertyProxyOptions
Gets a reference to an object containing the proxy settings used to access the web page that is being converted.
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
See Also