Skip to main content
Skip table of contents

HTMLWorker

HTMLWorker Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.html.simpleparser
  iTextSharp.text.html.simpleparser.HTMLWorker[[HTMLWorker]]
  end
  subgraph iTextSharp.text.xml.simpleparser
  iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler[[ISimpleXMLDocHandler]]
  class iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler interfaceStyle;
  end
  subgraph iTextSharp.text
  iTextSharp.text.IDocListener[[IDocListener]]
  class iTextSharp.text.IDocListener interfaceStyle;
  iTextSharp.text.IElementListener[[IElementListener]]
  class iTextSharp.text.IElementListener interfaceStyle;
  end
  subgraph System
System.IDisposable[[IDisposable]]
  end
iTextSharp.text.xml.simpleparser.ISimpleXMLDocHandler --> iTextSharp.text.html.simpleparser.HTMLWorker
iTextSharp.text.IDocListener --> iTextSharp.text.html.simpleparser.HTMLWorker
iTextSharp.text.IElementListener --> iTextSharp.text.IDocListener
System.IDisposable --> iTextSharp.text.IDocListener

Members

Properties

Public properties
TypeNameMethods
intPageCountset

Methods

Public methods
ReturnsName
boolAdd(IElement element)
voidCarriageReturn()
voidClose()
CellWrapperCreateCell(string tag)
ChunkCreateChunk(string content)
ImageCreateImage(IDictionary<string, string> attrs)
LineSeparatorCreateLineSeparator(IDictionary<string, string> attrs)
ListCreateList(string tag)
ListItemCreateListItem()
ParagraphCreateParagraph()
voidDispose()
voidEndDocument()
voidEndElement(string tag)
voidFlushContent()
IDictionary<string, object>GetInterfaceProps()
boolIsInsidePRE()
boolIsPendingLI()
boolIsPendingTD()
boolIsPendingTR()
boolIsSkipText()
voidNewLine()
boolNewPage()
voidOpen()
voidParse(TextReader reader)
voidPopTableState()
voidProcessImage(Image img, IDictionary<string, string> attrs)
voidProcessLink()
voidProcessList()
voidProcessListItem()
voidProcessRow()
voidProcessTable()
voidPushTableState()
voidPushToStack(IElement element)
voidResetPageCount()
voidSetInsidePRE(bool insidePRE)
voidSetInterfaceProps(Dictionary<string, object> providers)
boolSetMarginMirroring(bool marginMirroring)
boolSetMarginMirroringTopBottom(bool marginMirroring)
boolSetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
boolSetPageSize(Rectangle pageSize)
voidSetPendingLI(bool pendingLI)
voidSetPendingTD(bool pendingTD)
voidSetPendingTR(bool pendingTR)
voidSetProviders(IDictionary<string, object> providers)
voidSetSkipText(bool skipText)
voidSetStyleSheet(StyleSheet style)
voidSetSupportedTags(IDictionary<string, IHTMLTagProcessor> tags)
voidStartDocument()
voidStartElement(string tag, IDictionary<string, string> attrs)
voidText(string content)
voidUpdateChain(...)
Public Static methods
ReturnsName
List<IElement>ParseToList(...)

Details

Inheritance

Constructors

HTMLWorker [1/2]
Source code
public HTMLWorker(IDocListener document)
Arguments
TypeNameDescription
IDocListenerdocument
HTMLWorker [2/2]
Source code
public HTMLWorker(IDocListener document, IDictionary<string, IHTMLTagProcessor> tags, StyleSheet style)
Arguments
TypeNameDescription
IDocListenerdocument
IDictionary<string, IHTMLTagProcessor>tags
StyleSheetstyle

Methods

SetSupportedTags
Source code
public virtual void SetSupportedTags(IDictionary<string, IHTMLTagProcessor> tags)
Arguments
TypeNameDescription
IDictionary<string, IHTMLTagProcessor>tags
SetStyleSheet
Source code
public virtual void SetStyleSheet(StyleSheet style)
Arguments
TypeNameDescription
StyleSheetstyle
Parse
Source code
public virtual void Parse(TextReader reader)
Arguments
TypeNameDescription
TextReaderreader
StartDocument
Source code
public virtual void StartDocument()
StartElement
Source code
public virtual void StartElement(string tag, IDictionary<string, string> attrs)
Arguments
TypeNameDescription
stringtag
IDictionary<string, string>attrs
Text
Source code
public virtual void Text(string content)
Arguments
TypeNameDescription
stringcontent
EndElement
Source code
public virtual void EndElement(string tag)
Arguments
TypeNameDescription
stringtag
EndDocument
Source code
public virtual void EndDocument()
NewLine
Source code
public virtual void NewLine()
CarriageReturn
Source code
public virtual void CarriageReturn()
FlushContent
Source code
public virtual void FlushContent()
PushToStack
Source code
public virtual void PushToStack(IElement element)
Arguments
TypeNameDescription
IElementelement
UpdateChain [1/2]
Source code
public virtual void UpdateChain(string tag, IDictionary<string, string> attrs)
Arguments
TypeNameDescription
stringtag
IDictionary<string, string>attrs
UpdateChain [2/2]
Source code
public virtual void UpdateChain(string tag)
Arguments
TypeNameDescription
stringtag
SetProviders
Source code
public virtual void SetProviders(IDictionary<string, object> providers)
Arguments
TypeNameDescription
IDictionary<string, object>providers
CreateChunk
Source code
public virtual Chunk CreateChunk(string content)
Arguments
TypeNameDescription
stringcontent
CreateParagraph
Source code
public virtual Paragraph CreateParagraph()
CreateList
Source code
public virtual List CreateList(string tag)
Arguments
TypeNameDescription
stringtag
CreateListItem
Source code
public virtual ListItem CreateListItem()
CreateLineSeparator
Source code
public virtual LineSeparator CreateLineSeparator(IDictionary<string, string> attrs)
Arguments
TypeNameDescription
IDictionary<string, string>attrs
CreateImage
Source code
public virtual Image CreateImage(IDictionary<string, string> attrs)
Arguments
TypeNameDescription
IDictionary<string, string>attrs
CreateCell
Source code
public virtual CellWrapper CreateCell(string tag)
Arguments
TypeNameDescription
stringtag
Source code
public virtual void ProcessLink()
ProcessList
Source code
public virtual void ProcessList()
ProcessListItem
Source code
public virtual void ProcessListItem()
ProcessImage
Source code
public virtual void ProcessImage(Image img, IDictionary<string, string> attrs)
Arguments
TypeNameDescription
Imageimg
IDictionary<string, string>attrs
ProcessTable
Source code
public virtual void ProcessTable()
ProcessRow
Source code
public virtual void ProcessRow()
PushTableState
Source code
public virtual void PushTableState()
PopTableState
Source code
public virtual void PopTableState()
IsPendingTR
Source code
public virtual bool IsPendingTR()
SetPendingTR
Source code
public virtual void SetPendingTR(bool pendingTR)
Arguments
TypeNameDescription
boolpendingTR
IsPendingTD
Source code
public virtual bool IsPendingTD()
SetPendingTD
Source code
public virtual void SetPendingTD(bool pendingTD)
Arguments
TypeNameDescription
boolpendingTD
IsPendingLI
Source code
public virtual bool IsPendingLI()
SetPendingLI
Source code
public virtual void SetPendingLI(bool pendingLI)
Arguments
TypeNameDescription
boolpendingLI
IsInsidePRE
Source code
public virtual bool IsInsidePRE()
SetInsidePRE
Source code
public virtual void SetInsidePRE(bool insidePRE)
Arguments
TypeNameDescription
boolinsidePRE
IsSkipText
Source code
public virtual bool IsSkipText()
SetSkipText
Source code
public virtual void SetSkipText(bool skipText)
Arguments
TypeNameDescription
boolskipText
ParseToList [1/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style)
Arguments
TypeNameDescription
TextReaderreader
StyleSheetstyle
ParseToList [2/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style, Dictionary<string, object> providers)
Arguments
TypeNameDescription
TextReaderreader
StyleSheetstyle
Dictionary<string, object>providers
ParseToList [3/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style, IDictionary<string, IHTMLTagProcessor> tags, Dictionary<string, object> providers)
Arguments
TypeNameDescription
TextReaderreader
StyleSheetstyle
IDictionary<string, IHTMLTagProcessor>tags
Dictionary<string, object>providers
Add
Source code
public virtual bool Add(IElement element)
Arguments
TypeNameDescription
IElementelement
Close
Source code
public virtual void Close()
NewPage
Source code
public virtual bool NewPage()
Open
Source code
public virtual void Open()
ResetPageCount
Source code
public virtual void ResetPageCount()
SetMarginMirroring
Source code
public virtual bool SetMarginMirroring(bool marginMirroring)
Arguments
TypeNameDescription
boolmarginMirroring
SetMarginMirroringTopBottom
Source code
public virtual bool SetMarginMirroringTopBottom(bool marginMirroring)
Arguments
TypeNameDescription
boolmarginMirroring
SetMargins
Source code
public virtual bool SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Arguments
TypeNameDescription
floatmarginLeft
floatmarginRight
floatmarginTop
floatmarginBottom
SetPageSize
Source code
public virtual bool SetPageSize(Rectangle pageSize)
Arguments
TypeNameDescription
RectanglepageSize
SetInterfaceProps
Source code
public virtual void SetInterfaceProps(Dictionary<string, object> providers)
Arguments
TypeNameDescription
Dictionary<string, object>providers
GetInterfaceProps
Source code
public virtual IDictionary<string, object> GetInterfaceProps()
Dispose
Source code
public virtual void Dispose()

Properties

PageCount
public virtual int PageCount { set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.