Class PaddingApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.PaddingApplierUtil
Utilities class to apply a padding.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyPaddings
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies paddings to an element.static void
applyPaddings
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element, float baseValueVertical, float baseValueHorizontal) Applies paddings to an element.
-
Method Details
-
applyPaddings
public static void applyPaddings(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies paddings to an element.- Parameters:
-
cssProps
- the CSS properties -
context
- the processor context -
element
- the element
-
applyPaddings
public static void applyPaddings(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element, float baseValueVertical, float baseValueHorizontal) Applies paddings to an element.- Parameters:
-
cssProps
- the CSS properties -
context
- the processor context -
element
- the element -
baseValueHorizontal
- value used by default for horizontal dimension -
baseValueVertical
- value used by default for vertical dimension
-