pdfHTML 6.3.3 API
iText.Html2pdf.Attach.Impl.LabelContext Class Reference

This class keeps track of labels attached to applicable elements that present in the document. More...

Inheritance diagram for iText.Html2pdf.Attach.Impl.LabelContext:
iText.Html2pdf.Attach.IDocumentTreeJob

Public Member Functions

  LabelContext ()
  Creates new label context. More...
 
virtual String  GetAltDescription (String id)
  Gets the alternate description for the element by id. More...
 
virtual void  Process (INode node, int level)
  Processes a given node to analyze and store potential labels. More...
 

Detailed Description

This class keeps track of labels attached to applicable elements that present in the document.

This class keeps track of labels attached to applicable elements that present in the document. After elements are proccessed, the DOM tree is scanned and labels are attached to corresponding objects. This object in the iText.Html2pdf.Attach.ProcessorContext.

This class is not reusable, and a new instance shall be created for every new conversion process.

Constructor & Destructor Documentation

◆ LabelContext()

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

Creates new label context.

Member Function Documentation

◆ GetAltDescription()

virtual String iText.Html2pdf.Attach.Impl.LabelContext.GetAltDescription ( String  id )
inlinevirtual

Gets the alternate description for the element by id.

Parameters
id id of the element
Returns
alternate description

◆ Process()

virtual void iText.Html2pdf.Attach.Impl.LabelContext.Process ( INode  node,
int  level 
)
inlinevirtual

Processes a given node to analyze and store potential labels.

Parameters
node the node to process
level the level of the node within the document tree

Implements iText.Html2pdf.Attach.IDocumentTreeJob.