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 |
|---|---|
protected void |
addFontFaceFonts()
Adds @font-face fonts to the FontProvider.
|
com.itextpdf.layout.Document |
processDocument(INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Parses HTML to add the content to a PdfDocument.
|
List |
processElements(INode root)
Parses HTML to add the content to a list of IElement objects.
|
public DefaultHtmlProcessor(ConverterProperties converterProperties)
converterProperties - the converter properties
public ListprocessElements(INode root)
IHtmlProcessor
IElement objects.
processElements in interface IHtmlProcessor
root - the root node of the HTML that needs to be parsed
public com.itextpdf.layout.Document processDocument(INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
IHtmlProcessor
PdfDocument.
processDocument in interface IHtmlProcessor
root - the root node of the HTML that needs to be parsed
pdfDocument - the PdfDocument instance
Document instance
protected void addFontFaceFonts()
Copyright © 1998–2019 iText Group NV. All rights reserved.