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.DocumentprocessDocument(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 ofIElementobjects.
-
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- thePdfDocumentinstance - Returns:
-
a
Documentinstance
-
processElements
Parses HTML to add the content to a list ofIElementobjects.- Parameters:
-
root- the root node of the HTML that needs to be parsed - Returns:
- the resulting list
-