pdfHTML 2.1.6 API
iText.Html2pdf.Attach.Attacher Class Reference

Helper class to add parsed HTML content to an existing iText document, or to parse HTML to a list of iText elements. More...

Static Public Member Functions

static Document  Attach (IDocumentNode documentNode, 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 iText.Layout.Document object. More...
 
static IList< IElement >  Attach (IDocumentNode documentNode, ConverterProperties converterProperties)
  Attaches the HTML content stored in a document node to a list of iText.Layout.Element.IElement objects. More...
 

Detailed Description

Helper class to add parsed HTML content to an existing iText document, or to parse HTML to a list of iText elements.

Member Function Documentation

◆ Attach() [1/2]

static IList iText.Html2pdf.Attach.Attacher.Attach ( IDocumentNode  documentNode,
ConverterProperties  converterProperties 
)
inlinestatic

Attaches the HTML content stored in a document node to a list of iText.Layout.Element.IElement objects.

Parameters
documentNode the document node with the HTML
converterProperties the iText.Html2pdf.ConverterProperties instance
Returns
the list of iText.Layout.Element.IElement objects

◆ Attach() [2/2]

static Document iText.Html2pdf.Attach.Attacher.Attach ( IDocumentNode  documentNode,
PdfDocument  pdfDocument,
ConverterProperties  converterProperties 
)
inlinestatic

Attaches the HTML content stored in a document node to an existing PDF document, using specific converter properties, and returning an iText iText.Layout.Document object.

Parameters
documentNode the document node with the HTML
pdfDocument the iText.Kernel.Pdf.PdfDocument instance
converterProperties the iText.Html2pdf.ConverterProperties instance
Returns
an iText iText.Layout.Document object