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

This class keeps track of information regarding link (destinations) that occur in the document. More...

Public Member Functions

  LinkContext ()
  Construct an (empty) LinkContext More...
 
virtual iText.Html2pdf.Attach.Impl.LinkContext  ScanForIds (INode root)
  Scan the DOM tree for all (internal) link targets More...
 
virtual bool  IsUsedLinkDestination (String linkDestination)
  Returns whether a given (internal) link destination is used by at least one href element in the document More...
 

Detailed Description

This class keeps track of information regarding link (destinations) that occur in the document.

This class keeps track of information regarding link (destinations) that occur in the document. Doing so enables us to drastically trim the amount of PdfDestinations that will end up being included in the document. For performance reasons it was decided to scan the DOM tree only once and store the result in a separate object (this object) in the ProcessorContext.

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

Constructor & Destructor Documentation

◆ LinkContext()

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

Construct an (empty) LinkContext

Member Function Documentation

◆ IsUsedLinkDestination()

virtual bool iText.Html2pdf.Attach.Impl.LinkContext.IsUsedLinkDestination ( String  linkDestination )
inlinevirtual

Returns whether a given (internal) link destination is used by at least one href element in the document

Parameters
linkDestination link destination
Returns
whether a given (internal) link destination is used by at least one href element in the document

◆ ScanForIds()

virtual iText.Html2pdf.Attach.Impl.LinkContext iText.Html2pdf.Attach.Impl.LinkContext.ScanForIds ( INode  root )
inlinevirtual

Scan the DOM tree for all (internal) link targets

Parameters
root the DOM tree root node
Returns
this LinkContext