pdfHTML 5.0.5 API
iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier Class Reference

iText.Html2pdf.Css.Apply.ICssApplier implementation for page margin box containers. More...

Inheritance diagram for iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier:
iText.Html2pdf.Css.Apply.ICssApplier

Public Member Functions

virtual void  Apply (ProcessorContext context, IStylesContainer stylesContainer, ITagWorker tagWorker)
  Applies styles to an element. More...
 

Static Public Member Functions

static float[]  ParseBoxProps (IDictionary< String, String > styles, float em, float rem, float[] defaultValues, Rectangle containingBlock, String topPropName, String rightPropName, String bottomPropName, String leftPropName)
  Parses the page and margin boxes properties (like margins, paddings, etc). More...
 

Detailed Description

iText.Html2pdf.Css.Apply.ICssApplier implementation for page margin box containers.

Member Function Documentation

◆ Apply()

virtual void iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier.Apply ( ProcessorContext  context,
IStylesContainer  stylesContainer,
ITagWorker  tagWorker 
)
inlinevirtual

Applies styles to an element.

Parameters
context the processor context
stylesContainer the styles
tagWorker the tag worker for the element

Implements iText.Html2pdf.Css.Apply.ICssApplier.

◆ ParseBoxProps()

static float [] iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier.ParseBoxProps ( IDictionary< String, String >  styles,
float  em,
float  rem,
float[]  defaultValues,
Rectangle  containingBlock,
String  topPropName,
String  rightPropName,
String  bottomPropName,
String  leftPropName 
)
inlinestatic

Parses the page and margin boxes properties (like margins, paddings, etc).

Parameters
styles a System.Collections.IDictionary 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
Returns
an array with a top, right, bottom, and top float value