Class MarginApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.MarginApplierUtil
Utilities class to apply margins.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyMargins
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies margins to an element.static void
applyMargins
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element, float baseValueVertical, float baseValueHorizontal) Applies margins to an element.
-
Method Details
-
applyMargins
public static void applyMargins(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies margins to an element.- Parameters:
-
cssProps
- the CSS properties -
context
- the processor context -
element
- the element
-
applyMargins
public static void applyMargins(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element, float baseValueVertical, float baseValueHorizontal) Applies margins 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
-