public class PageMarginBoxCssApplier extends Object implements ICssApplier
ICssApplier implementation for page margin box containers.
| Constructor and Description |
|---|
PageMarginBoxCssApplier() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, ITagWorker tagWorker)
Applies styles to an element.
|
static float[] |
parseBoxProps(Map<String,String> styles, float em, float rem, float[] defaultValues, com.itextpdf.kernel.geom.Rectangle containingBlock, String topPropName, String rightPropName, String bottomPropName, String leftPropName)
Parses the page and margin boxes properties (like margins, paddings, etc).
|
public static float[] parseBoxProps(Map<String,String> styles, float em, float rem, float[] defaultValues, com.itextpdf.kernel.geom.Rectangle containingBlock, String topPropName, String rightPropName, String bottomPropName, String leftPropName)
styles - a Map containing the styles
em - a measurement expressed in em
rem - a measurement expressed in rem (root em)
defaultValues - the default values
containingBlock - the containing block
topPropName - the top prop name
rightPropName - the right prop name
bottomPropName - the bottom prop name
leftPropName - the left prop name
public void apply(ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, ITagWorker tagWorker)
ICssApplier
apply in interface ICssApplier
context - the processor context
stylesContainer - the styles
tagWorker - the tag worker for the element
Copyright © 1998–2019 iText Group NV. All rights reserved.