public class DefaultHtmlProcessor extends Object implements IHtmlProcessor
| Constructor and Description |
|---|
DefaultHtmlProcessor(ConverterProperties converterProperties)
Instantiates a new default html processor.
|
| Modifier and Type | Method and Description |
|---|---|
com.itextpdf.layout.Document |
processDocument(INode root,
com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Parses HTML to add the content to a
PdfDocument. |
List<com.itextpdf.layout.element.IElement> |
processElements(INode root)
Parses HTML to add the content to a list of
IElement objects. |
public DefaultHtmlProcessor(ConverterProperties converterProperties)
converterProperties - the converter propertiespublic List<com.itextpdf.layout.element.IElement> processElements(INode root)
IHtmlProcessorIElement objects.processElements in interface IHtmlProcessorroot - the root node of the HTML that needs to be parsedpublic com.itextpdf.layout.Document processDocument(INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
IHtmlProcessorPdfDocument.processDocument in interface IHtmlProcessorroot - the root node of the HTML that needs to be parsedpdfDocument - the PdfDocument instanceDocument instanceCopyright © 1998–2018 iText Group NV. All rights reserved.