pdfHTML 2.1.6 API
iText.Html2pdf.Css.Page.CssRunningManager Class Reference

Class that manages running elements. More...

Public Member Functions

virtual void  AddRunningElement (String runningElemName, RunningElementContainer container)
  Registers new running element from HTML document. More...
 
virtual RunningElementContainer  GetRunningElement (String runningElemName, String occurrenceOption, int pageNum)
  Finds the running element that has particular name and should appear on specific page with given occurrence options. More...
 

Detailed Description

Class that manages running elements.

Member Function Documentation

◆ AddRunningElement()

virtual void iText.Html2pdf.Css.Page.CssRunningManager.AddRunningElement ( String  runningElemName,
RunningElementContainer  container 
)
inlinevirtual

Registers new running element from HTML document.

Parameters
runningElemName the name of the new running element.
container a wrapper for the running elements taken out of the normal flow.

◆ GetRunningElement()

virtual RunningElementContainer iText.Html2pdf.Css.Page.CssRunningManager.GetRunningElement ( String  runningElemName,
String  occurrenceOption,
int  pageNum 
)
inlinevirtual

Finds the running element that has particular name and should appear on specific page with given occurrence options.

Finds the running element that has particular name and should appear on specific page with given occurrence options. This would work only if page content was already layouted and flushed (drawn).

Parameters
runningElemName the running element name.
occurrenceOption an option defining which running element should be chosen in case there are multiple running elements with the same name on the given page.
pageNum the 1-based index of the page for which running element is requested.
Returns

iText.Html2pdf.Attach.Impl.Layout.RunningElementContainer with corresponding running element, or null if no running element should be displayed for the given page with the given name or occurrence option.