Winnovative HTML to PDF Converter Library for .NET
ImgConverter Class
NamespacesWinnovative.WnvHtmlConvertImgConverter
Winnovative HTML to PDF Converter Library for .NET
This class offers the necessary API to create images in various formats from a specified web page
Declaration Syntax
C#Visual BasicVisual C++
public class ImgConverter
Public Class ImgConverter
public ref class ImgConverter
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ImgConverter()()()()
Creates an image converter to autodetect the width and height of the web page

ImgConverter(Int32)
Creates an image converter for a web page with the specified width and an autodected height

ImgConverter(Int32, Int32)
Creates an image converter for a web page with the specified width and height

ActiveXEnabled
Enable ActiveX controls when rendering HTML to image. Default is true.

AddPadding
Add padding at the end of the conversion result. Default is false.

AuthenticationPassword
Optionally set the Password property to authenticate to web server before accessing the URL to be converted (e.g handles any IIS authentication method)

AuthenticationUsername
Optionally set the Username property to authenticate to web server before accessing the URL to be converted (e.g handles any IIS authentication method)

BatchConversion
This property is obsolete.

BehaviorsEnabled
Enable behaviors when rendering HTML to image. Default is false.

BinaryBehaviorsEnabled
Internal use. Default is false.

ConversionDelay
An additional time in seconds to wait for asynchronous items to be loaded. A delay is necessary for example to allow a Flash movie to start before starting conversion.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetImageBytesFromHtmlFile(String, ImageFormat)
Gets binary format of an image generated from the specified HTML file in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlStream(Stream, Encoding, ImageFormat)
Gets binary format of an image generated from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlStream(Stream, Encoding, ImageFormat, String)
Gets binary format of an image generated from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlStreamWithTempFile(Stream, Encoding, ImageFormat)
Gets binary format of an image generated from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format. The htmlStream is first saved in a temporary file. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlStreamWithTempFile(Stream, Encoding, ImageFormat, String)
Gets binary format of an image generated from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format. The htmlStream is first saved in a temporary file. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlStream parameter. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlString(String, ImageFormat)
Gets binary format of an image generated from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlString(String, ImageFormat, String)
Gets binary format of an image generated from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter.

GetImageBytesFromHtmlStringWithTempFile(String, ImageFormat)
Gets binary format of an image generated from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format. The htmlString is first saved into a temporary file before performing the conversion The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromHtmlStringWithTempFile(String, ImageFormat, String)
Gets binary format of an image generated from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format. The htmlString is first saved into a temporary file before performing the conversion. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter. The bytes can be further written in any stream like a disk file or a web response.

GetImageBytesFromUrl(String, ImageFormat)
Gets binary format of an image generated from the specified URL in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response.

GetImageFromHtmlFile(String, ImageFormat)
Gets an System.Drawing.Image object from the specified HTML file in the the specified System.Drawing.Imaging.ImageFormat format

GetImageFromHtmlStream(Stream, Encoding, ImageFormat)
Gets an System.Drawing.Image object from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format

GetImageFromHtmlStream(Stream, Encoding, ImageFormat, String)
Gets an System.Drawing.Image object from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlStream parameter.

GetImageFromHtmlStreamWithTempFile(Stream, Encoding, ImageFormat)
Gets an System.Drawing.Image object from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format by writing first the stream in a temporary file

GetImageFromHtmlStreamWithTempFile(Stream, Encoding, ImageFormat, String)
Gets an System.Drawing.Image object from the specified HTML stream in the the specified System.Drawing.Imaging.ImageFormat format by writing first the stream in a temporary file. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter.

GetImageFromHtmlString(String, ImageFormat)
Gets an System.Drawing.Image object from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format

GetImageFromHtmlString(String, ImageFormat, String)
Gets an System.Drawing.Image object from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter.

GetImageFromHtmlStringWithTempFile(String, ImageFormat)
Gets an System.Drawing.Image object from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format by writing first the HTML string in a temporary file

GetImageFromHtmlStringWithTempFile(String, ImageFormat, String)
Gets an System.Drawing.Image object from the specified HTML string in the the specified System.Drawing.Imaging.ImageFormat format by writing first the HTML string in a temporary file. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter.

GetImageFromUrl(String, ImageFormat)
Gets an System.Drawing.Image object from the specified URL in the the specified System.Drawing.Imaging.ImageFormat format

GetImageFromUrlBytes(String, ImageFormat)
Gets binary format of an image generated from the specified URL in the the specified System.Drawing.Imaging.ImageFormat format. The bytes can be further written in any stream like a disk file or a web response. This method is obsolete and it was preserved for backward compatibility. It offers the same functionality as GetImageBytesFromUrl method which is the preferred method now.

GetImageTilesFromHtmlString(String)
Converts the specified HTML string to an array of image tiles.

GetImageTilesFromHtmlString(String, String)
Converts the specified HTML string to an array of image tiles. The urlBase parameter allows the converter to determine the full URLs from relative URLs for images and CSS files appearing in the HTML code from htmlString parameter.

GetImageTilesFromUrl(String)
Converts the specified URL to an array of image tiles.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HttpRequestHeaders
Gets or sets a string containing the HTTP headers sent by the converter to the web server when the web page is requested from a URL. The HTTP headers string can be used to define cookies, authentication options, URL referer or any other HTTP header to be sent to the web browser.

InternetSecurityZone
Specifies the internet security zone settings used by the HTML converter to convert web sites.

LicenseKey
Gets or sets the license key string received from the vendor. If this property is null the converter will automatically enter in evaluation mode and a demo watermark will be displayed on the generated image.

LoadHtmlConcurrencyLevel
This static parameter gives the maximum number of threads in the current process that can download and execute HTML documents simultaneously. This parameter must be set before the first conversion performed in the current process. When this parameter is 0 or negative and SerializeLoadHtml is false the concurrency level is the maximum value.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NavigationTimeout
The navigation timeout in seconds. Default value is 60.

PageHeight
Gets or sets the web page height. If the width was not set aswell, this property has no effect

PageWidth
Gets or sets the web page width

SamplingEnabled
Internal use only

SaveImageFromHtmlFileToFile(String, ImageFormat, String)
This method produces a image from the specified HTML file in the specified format and saves the image in the specified disk file. The existing file will be overwritten

SaveImageFromHtmlStreamToFile(Stream, Encoding, ImageFormat, String)
This method produces a image from the specified HTML stream in the specified format and saves the image in the specified disk file. The existing file will be overwritten

SaveImageFromHtmlStreamToFile(Stream, Encoding, ImageFormat, String, String)
This method produces a image from the specified HTML stream in the specified format and saves the image in the specified disk file. The existing file will be overwritten

SaveImageFromHtmlStreamToFileWithTempFile(Stream, Encoding, ImageFormat, String)
This method produces a image from the specified HTML stream in the specified format and saves the image in the specified disk file by writing first the HTML stream into a temporary file. The existing file will be overwritten.

SaveImageFromHtmlStreamToFileWithTempFile(Stream, Encoding, ImageFormat, String, String)
This method produces a image from the specified HTML stream in the specified format and saves the image in the specified disk file by writing first the HTML stream into a temporary file. The existing file will be overwritten.

SaveImageFromHtmlStringToFile(String, ImageFormat, String)
This method produces a image from the specified HTML string in the specified format and saves the image in the specified disk file. The existing file will be overwritten

SaveImageFromHtmlStringToFile(String, ImageFormat, String, String)
This method produces a image from the specified HTML string in the specified format and saves the image in the specified disk file. The existing file will be overwritten

SaveImageFromHtmlStringToFileWithTempFile(String, ImageFormat, String)
This method produces a image from the specified HTML string in the specified format and saves the image in the specified disk file by writing first the HTML string into a temporary file. The existing file will be overwritten.

SaveImageFromHtmlStringToFileWithTempFile(String, ImageFormat, String, String)
This method produces a image from the specified HTML string in the specified format and saves the image in the specified disk file by writing first the HTML string into a temporary file. The existing file will be overwritten.

SaveImageFromUrlToFile(String, ImageFormat, String)
This method produces a image from the specified URL in the specified format and saves the image in the specified disk file. The existing file will be overwritten

ScriptsEnabled
Enable scripts when rendering HTML to image. Default is true.

SerializeLoadHtml
This static flag indicates if the download and execution of the HTML code is serialized when the converter is called simultaneously from multiple threads of an application. This parameter must be set before the first conversion performed in the current process.Default value is false.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
ImgConverter

Assembly: Winnovative.WnvHtmlConvert (Module: Winnovative.WnvHtmlConvert) Version: 8.0.0.0 (8.0.0.0)