Click or drag to resize

HtmlElementsMappingOptions Class

Defines the necessary API to retrieve the positions in the generated PDF document for the HTML elements specified in a list. The HTML elements are specified by their unique HTML ID or HTML tag name.
Inheritance Hierarchy
SystemObject
  ExpertPdf.PdfCreatorHtmlElementsMappingOptions

Namespace:  ExpertPdf.PdfCreator
Assembly:  epdfcreator (in epdfcreator.dll) Version: 17.0.0
Syntax
public class HtmlElementsMappingOptions

The HtmlElementsMappingOptions type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyHtmlElementIds
This property is used to set an array containing the HTML IDs of the HTML elements for which to retrieve position in PDF. The HTML ID of a HTML element is given by its ID or NAME property in the HTML document. The HTML IDs are case insensitive. If there are many HTML elements with the same HTML ID in the HTML document, only the first HTML element with that ID will be retrieved. The elements mapping will be retrieved in the HtmlElementsMappingResult property after the HtmlToPdfElement was added to the PDF page.
Public propertyHtmlElementSelectors
Gets or sets the selectors of the HTML elements to be bookmarked. For example, the selector for all the H1 elements is "H1", the selector for all the elements with the CSS class name 'myclass' is "*.myclass" and the selector for the elements with the id 'myid' is "*#myid". Note: This is used only by the WebKit rendering engine.
Public propertyHtmlElementsMappingResult
This property is set by the converter after conversion and returns the mapping of the HTML elements specified by the HtmlElementIds and HtmlTagNames lists.
Public propertyHtmlTagNames
This property is used to set an array containing the HTML tag names of the HTML elements for which to retrieve position in PDF. The HTML tag names are case insensitive. The elements mapping will be retrieved in the HtmlElementsMappingResult property after the HtmlToPdfElement was added to the PDF page.
Top
See Also