public final class MarginApplierUtil extends Object
Modifier and Type | Method and Description |
---|---|
static 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.
|
public static void applyMargins(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element)
cssProps
- the CSS properties
context
- the processor context
element
- the element
public static void applyMargins(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element, float baseValueVertical, float baseValueHorizontal)
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
Copyright © 1998–2019 iText Group NV. All rights reserved.