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 stylesem - a measurement expressed in emrem - a measurement expressed in rem (root em)defaultValues - the default valuescontainingBlock - the containing blocktopPropName - the top prop namerightPropName - the right prop namebottomPropName - the bottom prop nameleftPropName - the left prop namepublic void apply(ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, ITagWorker tagWorker)
ICssApplierapply in interface ICssAppliercontext - the processor contextstylesContainer - the stylestagWorker - the tag worker for the elementCopyright © 1998–2022 iText Group NV. All rights reserved.