Class HtmlElementsMappingOptions
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
Defines the necessary API to retrieve the positions in the generated PDF document for the HTML elements specified in a list. The HTML elements to map are specified by the CSS selectors given by the HtmlElementSelectors property or by the special HTML attributes in HTML document
[ClassInterface(ClassInterfaceType.AutoDual)]
public class HtmlElementsMappingOptions
- Inheritance
-
HtmlElementsMappingOptions
- Inherited Members
Constructors
HtmlElementsMappingOptions()
public HtmlElementsMappingOptions()
Properties
HtmlElementSelectors
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.
public string[] HtmlElementSelectors { get; set; }
Property Value
- string[]
HtmlElementsMappingResult
This property is set by the converter after conversion and returns the mapping of the HTML elements selected by the HtmlElementSelectors selectors.
public HtmlElementMappingsCollection HtmlElementsMappingResult { get; }
Property Value
MapHiddenElements
A flag indicating if the mapping of hidden elements is enabled. This property is true by default
public bool MapHiddenElements { get; set; }