Class OutlineApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.OutlineApplierUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyOutlines
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies outlines to an element.static com.itextpdf.layout.borders.Border
getCertainBorder
(String outlineWidth, String outlineStyle, String outlineColor, float em, float rem) Creates aBorder
instance based on specific properties.
-
Method Details
-
applyOutlines
public static void applyOutlines(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies outlines to an element.- Parameters:
-
cssProps
- the CSS properties -
context
- the Processor context -
element
- the element
-
getCertainBorder
public static com.itextpdf.layout.borders.Border getCertainBorder(String outlineWidth, String outlineStyle, String outlineColor, float em, float rem) Creates aBorder
instance based on specific properties.- Parameters:
-
outlineWidth
- the outline width -
outlineStyle
- the outline style -
outlineColor
- the outline color -
em
- the em value -
rem
- the root em value - Returns:
- the border
-