pdfHTML 2.1.6 API
iText.Html2pdf.Attach.IHtmlProcessor Interface Reference

Interface for classes that can process HTML to PDF in the form of a iText.Kernel.Pdf.PdfDocument or a list of iText.Layout.Element.IElement objects. More...

Inheritance diagram for iText.Html2pdf.Attach.IHtmlProcessor:
iText.Html2pdf.Attach.Impl.DefaultHtmlProcessor

Public Member Functions

Document  ProcessDocument (INode root, PdfDocument pdfDocument)
  Parses HTML to add the content to a iText.Kernel.Pdf.PdfDocument. More...
 
IList< IElement >  ProcessElements (INode root)
  Parses HTML to add the content to a list of iText.Layout.Element.IElement objects. More...
 

Detailed Description

Interface for classes that can process HTML to PDF in the form of a iText.Kernel.Pdf.PdfDocument or a list of iText.Layout.Element.IElement objects.

Member Function Documentation

◆ ProcessDocument()

Document iText.Html2pdf.Attach.IHtmlProcessor.ProcessDocument ( INode  root,
PdfDocument  pdfDocument 
)

Parses HTML to add the content to a iText.Kernel.Pdf.PdfDocument.

Parameters
root the root node of the HTML that needs to be parsed
pdfDocument the iText.Kernel.Pdf.PdfDocument instance
Returns
a iText.Layout.Document instance

Implemented in iText.Html2pdf.Attach.Impl.DefaultHtmlProcessor.

◆ ProcessElements()

IList iText.Html2pdf.Attach.IHtmlProcessor.ProcessElements ( INode  root )

Parses HTML to add the content to a list of iText.Layout.Element.IElement objects.

Parameters
root the root node of the HTML that needs to be parsed
Returns
the resulting list

Implemented in iText.Html2pdf.Attach.Impl.DefaultHtmlProcessor.