Package com.itextpdf.html2pdf.css.page
Class CssRunningManager
java.lang.Object
com.itextpdf.html2pdf.css.page.CssRunningManager
Class that manages running elements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRunningElement
(String runningElemName, RunningElementContainer container) Registers new running element from HTML document.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.
-
Constructor Details
-
CssRunningManager
public CssRunningManager()
-
-
Method Details
-
addRunningElement
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
public 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. 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:
-
RunningElementContainer
with corresponding running element, ornull
if no running element should be displayed for the given page with the given name or occurrence option.
-