Table of Contents

Class TextmyHtmlHandler

Namespace
iTextSharp.text.html
Assembly
iTextSharp.LGPLv2.Core.dll

The Tags -class maps several XHTML-tags to iText-objects.

public class TextmyHtmlHandler : TextHandler
Inheritance
TextmyHtmlHandler
Inherited Members

Constructors

TextmyHtmlHandler(IDocListener)

Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object.

public TextmyHtmlHandler(IDocListener document)

Parameters

document IDocListener

this is the document on which events must be triggered

TextmyHtmlHandler(IDocListener, NullValueDictionary<string, XmlPeer>)

Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object.

public TextmyHtmlHandler(IDocListener document, NullValueDictionary<string, XmlPeer> htmlTags)

Parameters

document IDocListener

this is the document on which events must be triggered

htmlTags NullValueDictionary<string, XmlPeer>

a tagmap translating HTML tags to iText tags

TextmyHtmlHandler(IDocListener, HtmlTagMap)

Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on the Document -object.

public TextmyHtmlHandler(IDocListener document, HtmlTagMap htmlTags)

Parameters

document IDocListener

this is the document on which events must be triggered

htmlTags HtmlTagMap

a tagmap translating HTML tags to iText tags

TextmyHtmlHandler(IDocListener, BaseFont)

public TextmyHtmlHandler(IDocListener document, BaseFont bf)

Parameters

document IDocListener
bf BaseFont

Methods

EndElement(string, string, string)

This method gets called when a start tag is encountered.

public override void EndElement(string uri, string lname, string name)

Parameters

uri string

the Uniform Resource Identifier

lname string

the local name (without prefix), or the empty string if Namespace processing is not being performed.

name string

the name of the tag that is encountered

StartElement(string, string, string, INullValueDictionary<string, string>)

public override void StartElement(string uri, string lname, string name, INullValueDictionary<string, string> attrs)

Parameters

uri string
lname string
name string
attrs INullValueDictionary<string, string>