Package com.evopdf
Class HtmlElementMapping
java.lang.Object
com.evopdf.HtmlElementMapping
Represents the mapping of a HTML element in the PDF document as collection of
PDF rectangles. A HTML element can span on many pages in the generated PDF
document and therefore, in general, many PDF rectangles are necessary to
completely describe the mapping of a HTML element in PDF
-
Method Summary
Modifier and TypeMethodDescriptionThe attributes of the HTML elementThe CSS class name of the HTML elementThe ID in HTML of the HTML elementThe HTML code between the HTML tags of the HTML elementThe HTML code of the HTML elementThe HTML tag name of the HTML elementThe text of the HTML element.The mapping ID of the element given by the data-mapping-id HTML attributeThe rectangles occupied by the HTML element in the generated PDF document.
-
Method Details
-
htmlElementId
The ID in HTML of the HTML element- Returns:
- the ID in HTML of the HTML element
-
mappingId
The mapping ID of the element given by the data-mapping-id HTML attribute- Returns:
- the mapping ID of the element given by the data-mapping-id HTML attribute
-
pdfRectangles
The rectangles occupied by the HTML element in the generated PDF document. A HTML element can span on many pages in the generated PDF document and therefore, in general, many PDF rectangles are necessary to completely describe the mapping of a HTML element in PDF- Returns:
- the rectangles occupied by the HTML element in the generated PDF document
-
htmlElementText
The text of the HTML element. If the element does not have an associated text, this property returns null- Returns:
- the text of the HTML element
-
htmlElementOuterHtml
The HTML code of the HTML element- Returns:
- the HTML code of the HTML element
-
htmlElementInnerHtml
The HTML code between the HTML tags of the HTML element- Returns:
- the HTML code between the HTML tags of the HTML element
-
htmlElementTagName
The HTML tag name of the HTML element- Returns:
- the HTML tag name of the HTML element
-
htmlElementCssClassName
The CSS class name of the HTML element- Returns:
- the CSS class name of the HTML element
-
htmlElementAttributes
The attributes of the HTML element- Returns:
- the attributes of the HTML element
-