pdfHTML 2.1.6 API
iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory Class Reference

The default implementation of a tag worker factory, mapping tags to tag worker implementations. More...

Inheritance diagram for iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory:
iText.Html2pdf.Attach.ITagWorkerFactory

Public Member Functions

 DefaultTagWorkerFactory ()
 Instantiates a new default tag worker factory. More...
 
ITagWorker GetTagWorker (IElementNode tag, ProcessorContext context)
 
virtual ITagWorker GetCustomTagWorker (IElementNode tag, ProcessorContext context)
 This is a hook method. More...
 

Static Public Member Functions

static ITagWorkerFactory GetInstance ()
 Gets iText.Html2pdf.Attach.ITagWorkerFactory instance. More...
 

Detailed Description

The default implementation of a tag worker factory, mapping tags to tag worker implementations.

Constructor & Destructor Documentation

◆ DefaultTagWorkerFactory()

iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory.DefaultTagWorkerFactory ( )
inline

Instantiates a new default tag worker factory.

Member Function Documentation

◆ GetCustomTagWorker()

virtual ITagWorker iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory.GetCustomTagWorker ( IElementNode  tag,
ProcessorContext  context 
)
inlinevirtual

This is a hook method.

This is a hook method. Users wanting to provide a custom mapping or introduce their own ITagWorkers should implement this method.

Parameters
tagthe tag
contextthe context
Returns
the custom tag worker

◆ GetInstance()

static ITagWorkerFactory iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory.GetInstance ( )
inlinestatic

Gets iText.Html2pdf.Attach.ITagWorkerFactory instance.

Returns
default instance that is used if custom tag workers are not configured

◆ GetTagWorker()

ITagWorker iText.Html2pdf.Attach.Impl.DefaultTagWorkerFactory.GetTagWorker ( IElementNode  tag,
ProcessorContext  context 
)
inline
Parameters
tagIElementNode
contextProcessorContext
Returns
a ITagWorker instance constructed based on the passed parameters.

Implements iText.Html2pdf.Attach.ITagWorkerFactory.