Package com.evopdf
Class HtmlElementMappingsCollection
java.lang.Object
com.evopdf.HtmlElementMappingsCollection
Represents a collection of mappings of HTML elements in PDF
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
count()
Gets the number of HTML element mappings in this collectiongetByIndex
(int index) Gets the mapping at the specified zero based index from collectiongetElementByHtmlId
(String htmlElementId) Gets the mapping in PDF of the HTML element with the specified HTML ID.getElementByMappingId
(String mappingId) Gets the mapping in PDF of the HTML element with the mapping ID given by the special HTML attribute data-mapping-id.getElementsByTagName
(String htmlElementTagName) Gets the mapping in PDF of the HTML elements with the specified HTML tag name.
-
Constructor Details
-
HtmlElementMappingsCollection
public HtmlElementMappingsCollection()
-
-
Method Details
-
getByIndex
Gets the mapping at the specified zero based index from collection- Parameters:
index
- The zero based index of the mapping- Returns:
- he mapping at the specified index in collection. Returns null if the index is out of collection bounds
-
getElementByHtmlId
Gets the mapping in PDF of the HTML element with the specified HTML ID. The search is case insensitive- Parameters:
htmlElementId
- the HTML ID of the element- Returns:
- the mapping in PDF of the specified HTML element or null if no element with the specified ID was found
-
getElementByMappingId
Gets the mapping in PDF of the HTML element with the mapping ID given by the special HTML attribute data-mapping-id. The search is case insensitive- Parameters:
mappingId
- the mapping ID of the element given by the data-mapping-id HTML attribute- Returns:
- the mapping in PDF of the specified HTML element or null if no element with the specified mapping ID was found
-
getElementsByTagName
Gets the mapping in PDF of the HTML elements with the specified HTML tag name. The search is case insensitive- Parameters:
htmlElementTagName
- the HTML tag name of the element- Returns:
- the mappings in PDF of the specified HTML elements or null if no element with the specified tag name was found
-
count
public int count()Gets the number of HTML element mappings in this collection- Returns:
- the number of HTML element mappings in this collection
-