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.HtmlToPdfHtmlElementsMappingOptions

Namespace: ExpertPdf.HtmlToPdf
Assembly: ExpertPdf.HtmlToPdf (in ExpertPdf.HtmlToPdf.dll) Version: 11.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 conversion. Note: This is used only by the IE rendering engine.
Public propertyHtmlElementSelectors
This property is used to set an array containing the selectors of the HTML elements for which to retrieve position in PDF. For example, the selector for all the image elements is "img", 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". The elements mapping will be retrieved in the HtmlElementsMappingResult property after conversion. 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 conversion. Note: This is used only by the IE rendering engine.
Top
See Also