Package com.openhtmltopdf.util
Class BoxUtil
java.lang.Object
com.openhtmltopdf.util.BoxUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Box
getBodyBoxOrSomething
(Box root) static Element
Looks at the children of root.static Box
getBodyOrNull
(Box root) Looks at the direct children of root to find one with an element with node name body.private static boolean
-
Constructor Details
-
BoxUtil
public BoxUtil()
-
-
Method Details
-
getBodyElementOrSomething
Looks at the children of root.- Returns:
- The body element, last element child of root or root in order of preference.
-
isBody
-
getBodyBoxOrSomething
- Returns:
- body box, last child of root or root in order of preference.
-
getBodyOrNull
Looks at the direct children of root to find one with an element with node name body.
-