Class Attacher

java.lang.Object
com.itextpdf.html2pdf.attach.Attacher

public class Attacher extends Object
Helper class to add parsed HTML content to an existing iText document, or to parse HTML to a list of iText elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List
    attach(com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, ConverterProperties converterProperties)
    Attaches the HTML content stored in a document node to a list of IElement objects.
    static com.itextpdf.layout.Document
    attach(com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
    Attaches the HTML content stored in a document node to an existing PDF document, using specific converter properties, and returning an iText Document object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • attach

      public static com.itextpdf.layout.Document attach (com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, com.itextpdf.kernel.pdf.PdfDocument pdfDocument, ConverterProperties converterProperties)
      Attaches the HTML content stored in a document node to an existing PDF document, using specific converter properties, and returning an iText Document object.
      Parameters:
      documentNode - the document node with the HTML
      pdfDocument - the PdfDocument instance
      converterProperties - the ConverterProperties instance
      Returns:
      an iText Document object
    • attach

      public static List attach (com.itextpdf.styledxmlparser.node.IDocumentNode documentNode, ConverterProperties converterProperties)
      Attaches the HTML content stored in a document node to a list of IElement objects.
      Parameters:
      documentNode - the document node with the HTML
      converterProperties - the ConverterProperties instance
      Returns:
      the list of IElement objects