Class PageBreakApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.PageBreakApplierUtil
Utilities class to apply page breaks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPageBreakElementAfter
(ProcessorContext context, ITagWorker parentTagWorker, com.itextpdf.styledxmlparser.node.IElementNode childElement, ITagWorker childTagWorker) Processes a page break "after" property.static void
addPageBreakElementBefore
(ProcessorContext context, ITagWorker parentTagWorker, com.itextpdf.styledxmlparser.node.IElementNode childElement, ITagWorker childTagWorker) Processes a page break "before" property.static void
applyPageBreakProperties
(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies page break properties.
-
Method Details
-
applyPageBreakProperties
public static void applyPageBreakProperties(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies page break properties.- Parameters:
-
cssProps
- the CSS properties -
context
- the processor context -
element
- the element
-
addPageBreakElementBefore
public static void addPageBreakElementBefore(ProcessorContext context, ITagWorker parentTagWorker, com.itextpdf.styledxmlparser.node.IElementNode childElement, ITagWorker childTagWorker) Processes a page break "before" property.- Parameters:
-
context
- the processor context -
parentTagWorker
- the parent tag worker -
childElement
- the child element -
childTagWorker
- the child tag worker
-
addPageBreakElementAfter
public static void addPageBreakElementAfter(ProcessorContext context, ITagWorker parentTagWorker, com.itextpdf.styledxmlparser.node.IElementNode childElement, ITagWorker childTagWorker) Processes a page break "after" property.- Parameters:
-
context
- the processor context -
parentTagWorker
- the parent tag worker -
childElement
- the child element -
childTagWorker
- the child tag worker
-