Click or drag to resize

HtmlToImageElement Properties

The HtmlToImageElement type exposes the following members.

Properties
 NameDescription
Public propertyActualText Gets or sets the exact text this element stands for in a tagged document, when its content does not spell it (text drawn as an image or with an unusual font, for example). The default value is null.
(Inherited from PageElement)
Public propertyAllowLocalAccess A flag indicating if local files can be loaded during the conversion. The default value is True and local files can be loaded.
Public propertyAlternateText Gets or sets the alternate description of this element in a tagged document, read by assistive technology instead of the content - the description of a figure, for example. PDF/UA requires it for figures. The default value is null.
(Inherited from PageElement)
Public propertyArtifact Gets or sets whether this element is decorative in a tagged document: it is marked as an artifact (a background, a rule, a running header) and left out of the logical structure. The default value is false.
(Inherited from PageElement)
Public propertyAuthenticationOptions HTTP authentication options (user name and password) for accessing the URL to convert.
Public propertyBackColor Gets or sets the element background color.
(Inherited from PageGraphicElement)
Public propertyBlending Gets or sets the blending mode for the transparent rendering of the element.
(Inherited from PageGraphicElement)
Public propertyCefEnginePath Gets or sets the full path of the folder containing the Chromium rendering engine.
Public propertyCefEngineTemporaryFilesPath Gets or sets the full path of a folder where the Chromium rendering engine will write temporary files.
Public propertyClipHtmlView If the HTML content is not entirely visible in the HTML viewer at the specified width, the ClipHtmlView property will control whether the HTML content is clipped or the HTML viewer width is automatically extended to make visible the whole HTML content. The HTML viewer width is given by the HtmlViewerWidth property. The default value of this property is false.
Public propertyColorSpace Gets or sets the color space the element colors are written in: RGB (the default), CMYK or grayscale.
(Inherited from PageGraphicElement)
Public propertyConversionDelay An additional time in seconds to wait for asynchronous items to be loaded
Public propertyEnableOfflineMode Put the browser into offline mode before navigation, so all network requests fail.
Public propertyFitHeight When this property is true the resulted image will be resized if necessary to fit the available height in PDF page. By default this property is false.
Public propertyFitWidth When this property is true the resulted image will be resized if necessary to fit the available width in PDF page. When false the image will be rendered at the real size. By default this property is true and the image will be resized if necessary to fit the available width in PDF page
Public propertyForceOutOfProcess Runs this conversion in a separate engine process, whatever ChromiumEngineHostMode says.
Public propertyForeColor Gets or sets the element foreground color.
(Inherited from PageGraphicElement)
Public propertyGradient Gets or sets the gradient used to fill a shape.
(Inherited from PageGraphicElement)
Public propertyHtmlDocumentInfo Gets an object populated after conversion with the title, keywords, and description of the converted HTML document.
Public propertyHtmlViewerHeight Gets or sets the HTML viewer height in pixels. If the viewer width was not set, this property has no effect
Public propertyHtmlViewerWidth Gets or sets the HTML viewer width in pixels
Public propertyHttpCache Selects what the rendering engine's HTTP cache keeps from this conversion for the next one.
Public propertyHttpCookies Gets a collection of custom HTTP cookies to be sent by the converter to the web server when the web page to convert and the resources (image, css, etc) referenced by the web page are requested. A cookie is defined by a name and a value pair that can be added to the collection using the Add(string, string) method of the HttpCookies property.
Public propertyHttpHeaders Gets a collection of custom HTTP headers to be sent by the converter to the web server when the web page is requested from a URL. A custom HTTP header is defined by a name and a value pair that can be added to the collection using the Add(string, string) method of the HttpHeaders property. The custom HTTP headers can be used to define cookies, authentication options, URL referer or any other HTTP header to be sent to the web browser. The preferred method to send cookies is to use the HttpCookies property.
Public propertyHttpPostParameters Gets the collection of custom HTTP POST parameters used for the conversion.
Public propertyLineStyle Gets or sets the line style of the elements that render lines.
(Inherited from PageGraphicElement)
Public propertyMaxConversionTime The maximum time in seconds the conversion of this element may take after the page has loaded. Default value is 60.
Public propertyNavigationTimeout The navigation timeout in seconds. Default value is 60.
Public propertyPaginate When true the element can be paginated
Public propertyProxyOptions Gets a reference to an object encapsulating the proxy options used to access the HTML document to convert.
Public propertyRenderedPagesRectangles The bounds of the rendered rectangle on each PDF page. This property is assigned after the element has been added to a PDF page.
Public propertyRenderElementId Use this property to convert only a certain section of the page, specified by the html element ID.
Public propertyRenderElementSelector Use this property to convert only the part of the page matched by this CSS selector.
Public propertyRenderingEngine Gets or sets the rendering engine used to load and render the HTML, and where it runs: on this machine (Chromium) or in a remote ExpertPdf engine (ChromiumRemote).
Public propertyRotated Gets whether the element is rotated (Rotate was called with a non-zero angle).
(Inherited from PageGraphicElement)
Public propertyScaled Gets whether the element is scaled (Scale was called with a factor other than 1).
(Inherited from PageGraphicElement)
Public propertyScriptsEnabled Enable scripts when rendering HTML to image. Default is true.
Public propertySkewed Gets whether the element is skewed (Skew was called with a non-zero angle).
(Inherited from PageGraphicElement)
Public propertyStartupMode Use this property to specify the converter startup mode. By default this is set to Automatic and the conversion is started as soon as the page loads (and ConversionDelay elapses). If set to Manual, the conversion is started only by a javascript call to ExpertPdfJSObj.startConversion()
Public propertyStartupScript Use this property to specify some JavaScript code that will be injected into the page that is converted. The JavaScript code specified here will run before any other script on the page.
Public propertyStretchToFit This property has effect only when FitWidth property is true. When FitWidth is true and this property is true the HTML content will be stretched if necessary to fit the available width in PDF page. By default this property is false and the content will not be stretched to fit the available width in PDF page.
Public propertyTagType Gets or sets the structure type of this element in a tagged document (a heading, a paragraph, a figure and so on). Every element added to a tagged document must have a tag type or be an Artifact. Ignored in a document that is not tagged. The default value is null.
(Inherited from PageElement)
Public propertyTranslated Gets whether the element is translated (Translate was called with a non-zero offset).
(Inherited from PageGraphicElement)
Public propertyTransparency Gets or sets the element transparency, as a value between 0 and 100: 0 means completely transparent and 100 completely opaque. The default value is 100.
(Inherited from PageGraphicElement)
Public propertyWebGlEnabled Controls WebGL support in the rendering engine.
Public propertyWindowStatus If set, the converter waits for window.status to match this string before capturing the page.
Top
See Also