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
Methods
Public methods
| Returns | Name |
|---|
bool | Add(IElement element) |
void | CarriageReturn() |
void | Close() |
CellWrapper | CreateCell(string tag) |
Chunk | CreateChunk(string content) |
Image | CreateImage(IDictionary<string, string> attrs) |
LineSeparator | CreateLineSeparator(IDictionary<string, string> attrs) |
List | CreateList(string tag) |
ListItem | CreateListItem() |
Paragraph | CreateParagraph() |
void | Dispose() |
void | EndDocument() |
void | EndElement(string tag) |
void | FlushContent() |
IDictionary<string, object> | GetInterfaceProps() |
bool | IsInsidePRE() |
bool | IsPendingLI() |
bool | IsPendingTD() |
bool | IsPendingTR() |
bool | IsSkipText() |
void | NewLine() |
bool | NewPage() |
void | Open() |
void | Parse(TextReader reader) |
void | PopTableState() |
void | ProcessImage(Image img, IDictionary<string, string> attrs) |
void | ProcessLink() |
void | ProcessList() |
void | ProcessListItem() |
void | ProcessRow() |
void | ProcessTable() |
void | PushTableState() |
void | PushToStack(IElement element) |
void | ResetPageCount() |
void | SetInsidePRE(bool insidePRE) |
void | SetInterfaceProps(Dictionary<string, object> providers) |
bool | SetMarginMirroring(bool marginMirroring) |
bool | SetMarginMirroringTopBottom(bool marginMirroring) |
bool | SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) |
bool | SetPageSize(Rectangle pageSize) |
void | SetPendingLI(bool pendingLI) |
void | SetPendingTD(bool pendingTD) |
void | SetPendingTR(bool pendingTR) |
void | SetProviders(IDictionary<string, object> providers) |
void | SetSkipText(bool skipText) |
void | SetStyleSheet(StyleSheet style) |
void | SetSupportedTags(IDictionary<string, IHTMLTagProcessor> tags) |
void | StartDocument() |
void | StartElement(string tag, IDictionary<string, string> attrs) |
void | Text(string content) |
void | UpdateChain(...) |
Public Static methods
Details
Inheritance
Constructors
HTMLWorker [1/2]
Source code
public HTMLWorker(IDocListener document)
Arguments
HTMLWorker [2/2]
Source code
public HTMLWorker(IDocListener document, IDictionary<string, IHTMLTagProcessor> tags, StyleSheet style)
Arguments
Methods
Source code
public virtual void SetSupportedTags(IDictionary<string, IHTMLTagProcessor> tags)
Arguments
SetStyleSheet
Source code
public virtual void SetStyleSheet(StyleSheet style)
Arguments
Parse
Source code
public virtual void Parse(TextReader reader)
Arguments
| Type | Name | Description |
|---|
TextReader | reader | |
StartDocument
Source code
public virtual void StartDocument()
StartElement
Source code
public virtual void StartElement(string tag, IDictionary<string, string> attrs)
Arguments
| Type | Name | Description |
|---|
string | tag | |
IDictionary<string, string> | attrs | |
Text
Source code
public virtual void Text(string content)
Arguments
| Type | Name | Description |
|---|
string | content | |
EndElement
Source code
public virtual void EndElement(string tag)
Arguments
| Type | Name | Description |
|---|
string | tag | |
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
UpdateChain [1/2]
Source code
public virtual void UpdateChain(string tag, IDictionary<string, string> attrs)
Arguments
| Type | Name | Description |
|---|
string | tag | |
IDictionary<string, string> | attrs | |
UpdateChain [2/2]
Source code
public virtual void UpdateChain(string tag)
Arguments
| Type | Name | Description |
|---|
string | tag | |
SetProviders
Source code
public virtual void SetProviders(IDictionary<string, object> providers)
Arguments
| Type | Name | Description |
|---|
IDictionary<string, object> | providers | |
CreateChunk
Source code
public virtual Chunk CreateChunk(string content)
Arguments
| Type | Name | Description |
|---|
string | content | |
CreateParagraph
Source code
public virtual Paragraph CreateParagraph()
CreateList
Source code
public virtual List CreateList(string tag)
Arguments
| Type | Name | Description |
|---|
string | tag | |
CreateListItem
Source code
public virtual ListItem CreateListItem()
CreateLineSeparator
Source code
public virtual LineSeparator CreateLineSeparator(IDictionary<string, string> attrs)
Arguments
| Type | Name | Description |
|---|
IDictionary<string, string> | attrs | |
CreateImage
Source code
public virtual Image CreateImage(IDictionary<string, string> attrs)
Arguments
| Type | Name | Description |
|---|
IDictionary<string, string> | attrs | |
CreateCell
Source code
public virtual CellWrapper CreateCell(string tag)
Arguments
| Type | Name | Description |
|---|
string | tag | |
ProcessLink
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
| Type | Name | Description |
|---|
Image | img | |
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
| Type | Name | Description |
|---|
bool | pendingTR | |
IsPendingTD
Source code
public virtual bool IsPendingTD()
SetPendingTD
Source code
public virtual void SetPendingTD(bool pendingTD)
Arguments
| Type | Name | Description |
|---|
bool | pendingTD | |
IsPendingLI
Source code
public virtual bool IsPendingLI()
SetPendingLI
Source code
public virtual void SetPendingLI(bool pendingLI)
Arguments
| Type | Name | Description |
|---|
bool | pendingLI | |
IsInsidePRE
Source code
public virtual bool IsInsidePRE()
SetInsidePRE
Source code
public virtual void SetInsidePRE(bool insidePRE)
Arguments
| Type | Name | Description |
|---|
bool | insidePRE | |
IsSkipText
Source code
public virtual bool IsSkipText()
SetSkipText
Source code
public virtual void SetSkipText(bool skipText)
Arguments
| Type | Name | Description |
|---|
bool | skipText | |
ParseToList [1/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style)
Arguments
| Type | Name | Description |
|---|
TextReader | reader | |
StyleSheet | style | |
ParseToList [2/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style, Dictionary<string, object> providers)
Arguments
| Type | Name | Description |
|---|
TextReader | reader | |
StyleSheet | style | |
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
Add
Source code
public virtual bool Add(IElement element)
Arguments
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
| Type | Name | Description |
|---|
bool | marginMirroring | |
SetMarginMirroringTopBottom
Source code
public virtual bool SetMarginMirroringTopBottom(bool marginMirroring)
Arguments
| Type | Name | Description |
|---|
bool | marginMirroring | |
SetMargins
Source code
public virtual bool SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Arguments
| Type | Name | Description |
|---|
float | marginLeft | |
float | marginRight | |
float | marginTop | |
float | marginBottom | |
SetPageSize
Source code
public virtual bool SetPageSize(Rectangle pageSize)
Arguments
SetInterfaceProps
Source code
public virtual void SetInterfaceProps(Dictionary<string, object> providers)
Arguments
| Type | Name | Description |
|---|
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