Package com.itextpdf.html2pdf.attach
Interface IHtmlProcessor
- All Known Implementing Classes:
-
DefaultHtmlProcessor
public interface IHtmlProcessor
Interface for classes that can process HTML to PDF in the form of a
PdfDocument
or a list of IElement
objects.
-
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.layout.Document
processDocument
(com.itextpdf.styledxmlparser.node.INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument) Parses HTML to add the content to aPdfDocument
.processElements
(com.itextpdf.styledxmlparser.node.INode root) Parses HTML to add the content to a list ofIElement
objects.
-
Method Details
-
processDocument
com.itextpdf.layout.Document processDocument(com.itextpdf.styledxmlparser.node.INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument) Parses HTML to add the content to aPdfDocument
.- Parameters:
-
root
- the root node of the HTML that needs to be parsed -
pdfDocument
- thePdfDocument
instance - Returns:
-
a
Document
instance
-
processElements
Parses HTML to add the content to a list ofIElement
objects.- Parameters:
-
root
- the root node of the HTML that needs to be parsed - Returns:
- the resulting list
-