pdfHTML 2.1.6 API
iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory Class Reference

A factory for creating iText.Html2pdf.Css.Apply.ICssApplier objects. More...

Inheritance diagram for iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory:
iText.Html2pdf.Css.Apply.ICssApplierFactory

Public Member Functions

 DefaultCssApplierFactory ()
 Creates a new DefaultCssApplierFactory instance. More...
 
ICssApplier GetCssApplier (IElementNode tag)
 Returns a ICssApplier instance constructed based on the parameters of a node. More...
 
virtual ICssApplier GetCustomCssApplier (IElementNode tag)
 Gets a custom CSS applier. More...
 

Static Public Member Functions

static ICssApplierFactory GetInstance ()
 Gets DefaultCssApplierFactory instance. More...
 

Detailed Description

A factory for creating iText.Html2pdf.Css.Apply.ICssApplier objects.

Constructor & Destructor Documentation

◆ DefaultCssApplierFactory()

iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory.DefaultCssApplierFactory ( )
inline

Creates a new DefaultCssApplierFactory instance.

Member Function Documentation

◆ GetCssApplier()

ICssApplier iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory.GetCssApplier ( IElementNode  tag)
inline

Returns a ICssApplier instance constructed based on the parameters of a node.

Parameters
taga node
Returns
a CSS applier based on the parameters of a node

Implements iText.Html2pdf.Css.Apply.ICssApplierFactory.

◆ GetCustomCssApplier()

virtual ICssApplier iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory.GetCustomCssApplier ( IElementNode  tag)
inlinevirtual

Gets a custom CSS applier.

Gets a custom CSS applier. This method needs to be overridden because the default CSS applier factory will always return null.

Parameters
tagthe key
Returns
the custom CSS applier

◆ GetInstance()

static ICssApplierFactory iText.Html2pdf.Css.Apply.Impl.DefaultCssApplierFactory.GetInstance ( )
inlinestatic

Gets DefaultCssApplierFactory instance.

Returns
default instance that is used if custom css appliers are not configured