Click or drag to resize
Pdf Library for .NET

HtmlToImageElement Properties

The HtmlToImageElement type exposes the following members.

Properties
 NameDescription
Public propertyActualText Gets or sets the exact text represented by this element (the structure element's /ActualText entry), used when the drawn glyphs do not map to readable text.
(Inherited from PdfPageElement)
Public propertyAlternateText Gets or sets the alternate text describing this element for assistive technology (the structure element's /Alt entry). Required on figures for PDF/UA conformance.
(Inherited from PdfPageElement)
Public propertyArtifact Gets or sets a value indicating whether this element is an artifact — decorative or layout content that carries no meaning and is excluded from the logical structure (backgrounds, rules, running headers). Takes precedence over TagType.
(Inherited from PdfPageElement)
Public propertyAuthenticationPasswordThe password for HTTP basic authentication.
Public propertyAuthenticationUsernameThe user name for HTTP basic authentication.
Public propertyChromiumEnginePath The full path of the Chromium rendering engine used to render the html. When not set, the engine is resolved automatically from the application folder.
Public propertyChromiumEngineTemporaryFilesPath The path where the Chromium rendering engine writes its temporary files. When not set, the system temporary folder is used.
Public propertyClickElementsDelayAfterDelay (ms) after clicking the elements.
Public propertyClickElementsDelayBeforeDelay (ms) before clicking the elements.
Public propertyClickElementsSelectorsCSS selectors of elements to click before capturing.
Public propertyConversionDelay Additional time in seconds the converter waits after the web page has loaded, before it is rendered.
Public propertyCustomCSSExtra CSS injected into the page before capture.
Public propertyDenyLocalFileAccessWhen true, local file access is denied during the conversion.
Public propertyDrawBackgroundWhether the page background is drawn into the image. Default true.
Public propertyEnableOfflineModeWhether the browser runs in offline mode.
Public propertyForceOutOfProcess Runs this element's rendering in a separate engine process, whatever ChromiumEngineHostMode says.
Public propertyHeightThe destination height (points); -1 preserves the image aspect ratio.
Public propertyHttpCache Selects what the engine's HTTP cache keeps from this conversion for the next one.
Public propertyHttpCookiesHTTP cookies sent with the request.
Public propertyHttpHeadersAdditional HTTP request headers.
Public propertyHttpPostParametersHTTP POST parameters.
Public propertyJavaScriptEnabledWhether JavaScript is enabled during rendering. Default true.
Public propertyLazyImagesLoadingDelayDelay (ms) used while triggering lazy image loading. Default 40.
Public propertyLazyImagesLoadingEnabledWhether lazy-loaded images are forced to load. Default true.
Public propertyLFN Path of the diagnostic log file written during conversion. When unset, no log is written.
Public propertyLoginOptionsForm-login options performed before navigating to the target page.
Public propertyMaxConversionTimeMaximum time (seconds) for the conversion. Default 60.
Public propertyMaxPageLoadTime The time in seconds to wait for the web page to load. Obsolete: use NavigationTimeout.
Obsolete
Public propertyMinPageLoadTime Additional time in seconds to wait before the web page is rendered. Obsolete: use ConversionDelay.
Obsolete
Public propertyNavigationTimeout The time in seconds the converter waits for the web page to load.
Public propertyPostLoadingScriptJavaScript run after the page loads, before capture.
Public propertyPostLoadingScriptDelayAfterDelay (ms) after running PostLoadingScript.
Public propertyProxyOptionsProxy settings for the conversion.
Public propertyRenderingEngine Gets or sets the rendering engine used to load and render the html.
Public propertyStartupModeThe startup mode of the conversion.
Public propertyStartupScriptJavaScript run at startup in Manual startup mode.
Public propertyTagType Gets or sets the structure type used to tag this element in a tagged (accessible) document. Ignored unless the document's tagged mode (PdfDocument.Tagged) is enabled. Null (default) leaves the element untagged unless Artifact is set.
(Inherited from PdfPageElement)
Public propertyVisibleWebElementId Convert only the html element with the specified id.
Obsolete
Public propertyVisibleWebElementSelector Convert only the part of the page matched by this CSS selector; the rest is ignored.
Public propertyWebGlEnabled Controls WebGL support in the rendering engine.
Public propertyWebPageFixedSizeWhen true, the virtual browser uses the exact width / height without auto-sizing.
Public propertyWebPageHeightThe virtual browser height, in pixels. Default 0 (auto).
Public propertyWebPageWidthThe virtual browser width, in pixels. Default 1024.
Public propertyWidthThe destination width (points); -1 fits the available page width.
Public propertyWindowStatusWhen set, the engine waits until window.status equals this value before capturing.
Public propertyXThe x position (points) where the image is placed.
Public propertyYThe y position (points) where the image is placed.
Top
See Also