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 Type
    Method
    Description
    com.itextpdf.layout.Document
    processDocument(com.itextpdf.styledxmlparser.node.INode root, com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
    Parses HTML to add the content to a PdfDocument.
    processElements(com.itextpdf.styledxmlparser.node.INode root)
    Parses HTML to add the content to a list of IElement 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 a PdfDocument.
      Parameters:
      root - the root node of the HTML that needs to be parsed
      pdfDocument - the PdfDocument instance
      Returns:
      a Document instance
    • processElements

      List processElements (com.itextpdf.styledxmlparser.node.INode root)
      Parses HTML to add the content to a list of IElement objects.
      Parameters:
      root - the root node of the HTML that needs to be parsed
      Returns:
      the resulting list