Html |
The HtmlToImageElement type exposes the following members.
| Name | Description | |
|---|---|---|
| ActualText |
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) | |
| AllowLocalAccess | A flag indicating if local files can be loaded during the conversion. The default value is True and local files can be loaded. | |
| AlternateText |
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) | |
| Artifact |
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) | |
| AuthenticationOptions | HTTP authentication options (user name and password) for accessing the URL to convert. | |
| BackColor |
Gets or sets the element background color.
(Inherited from PageGraphicElement) | |
| Blending |
Gets or sets the blending mode for the transparent rendering of the element.
(Inherited from PageGraphicElement) | |
| CefEnginePath | Gets or sets the full path of the folder containing the Chromium rendering engine. | |
| CefEngineTemporaryFilesPath | Gets or sets the full path of a folder where the Chromium rendering engine will write temporary files. | |
| ClipHtmlView | 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. | |
| ColorSpace |
Gets or sets the color space the element colors are written in: RGB (the default), CMYK or
grayscale.
(Inherited from PageGraphicElement) | |
| ConversionDelay | An additional time in seconds to wait for asynchronous items to be loaded | |
| EnableOfflineMode | Put the browser into offline mode before navigation, so all network requests fail. | |
| FitHeight | 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. | |
| FitWidth | 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 | |
| ForceOutOfProcess | Runs this conversion in a separate engine process, whatever ChromiumEngineHostMode says. | |
| ForeColor |
Gets or sets the element foreground color.
(Inherited from PageGraphicElement) | |
| Gradient |
Gets or sets the gradient used to fill a shape.
(Inherited from PageGraphicElement) | |
| HtmlDocumentInfo | Gets an object populated after conversion with the title, keywords, and description of the converted HTML document. | |
| HtmlViewerHeight | Gets or sets the HTML viewer height in pixels. If the viewer width was not set, this property has no effect | |
| HtmlViewerWidth | Gets or sets the HTML viewer width in pixels | |
| HttpCache | Selects what the rendering engine's HTTP cache keeps from this conversion for the next one. | |
| HttpCookies | 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. | |
| HttpHeaders | 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. | |
| HttpPostParameters | Gets the collection of custom HTTP POST parameters used for the conversion. | |
| LineStyle |
Gets or sets the line style of the elements that render lines.
(Inherited from PageGraphicElement) | |
| MaxConversionTime | The maximum time in seconds the conversion of this element may take after the page has loaded. Default value is 60. | |
| NavigationTimeout | The navigation timeout in seconds. Default value is 60. | |
| Paginate | When true the element can be paginated | |
| ProxyOptions | Gets a reference to an object encapsulating the proxy options used to access the HTML document to convert. | |
| RenderedPagesRectangles | The bounds of the rendered rectangle on each PDF page. This property is assigned after the element has been added to a PDF page. | |
| RenderElementId | Use this property to convert only a certain section of the page, specified by the html element ID. | |
| RenderElementSelector | Use this property to convert only the part of the page matched by this CSS selector. | |
| RenderingEngine | 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). | |
| Rotated |
Gets whether the element is rotated (Rotate was called with a non-zero angle).
(Inherited from PageGraphicElement) | |
| Scaled |
Gets whether the element is scaled (Scale was called with a factor other than 1).
(Inherited from PageGraphicElement) | |
| ScriptsEnabled | Enable scripts when rendering HTML to image. Default is true. | |
| Skewed |
Gets whether the element is skewed (Skew was called with a non-zero angle).
(Inherited from PageGraphicElement) | |
| StartupMode | 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() | |
| StartupScript | 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. | |
| StretchToFit | 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. | |
| TagType |
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) | |
| Translated |
Gets whether the element is translated (Translate was called with a non-zero offset).
(Inherited from PageGraphicElement) | |
| Transparency |
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) | |
| WebGlEnabled | Controls WebGL support in the rendering engine. | |
| WindowStatus | If set, the converter waits for window.status to match this string before capturing the page. |