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
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
Methods
Public methods
|
Returns |
Name |
|---|---|
|
|
(
element) |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
() |
|
|
(
img, |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
(
element) |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
(
pageSize) |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
(
style) |
|
|
(
> tags) |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
Public Static methods
|
Returns |
Name |
|---|---|
|
> |
( |
Details
Inheritance
-
ISimpleXMLDocHandler -
IDocListener -
IElementListener -
IDisposable
Constructors
HTMLWorker [1/2]
Source code
public HTMLWorker(IDocListener document)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
document |
HTMLWorker [2/2]
Source code
public HTMLWorker(IDocListener document, IDictionary<string, IHTMLTagProcessor> tags, StyleSheet style)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
document |
|
|
> |
tags |
|
|
|
style |
Methods
SetSupportedTags
Source code
public virtual void SetSupportedTags(IDictionary<string, IHTMLTagProcessor> tags)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
> |
tags |
SetStyleSheet
Source code
public virtual void SetStyleSheet(StyleSheet style)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
style |
Parse
Source code
public virtual void Parse(TextReader reader)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
tag |
|
|
|
attrs |
Text
Source code
public virtual void Text(string content)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
content |
EndElement
Source code
public virtual void EndElement(string tag)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
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
|
Type |
Name |
Description |
|---|---|---|
|
|
element |
UpdateChain [1/2]
Source code
public virtual void UpdateChain(string tag, IDictionary<string, string> attrs)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
tag |
|
|
|
attrs |
UpdateChain [2/2]
Source code
public virtual void UpdateChain(string tag)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
tag |
SetProviders
Source code
public virtual void SetProviders(IDictionary<string, object> providers)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
providers |
CreateChunk
Source code
public virtual Chunk CreateChunk(string content)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
content |
CreateParagraph
Source code
public virtual Paragraph CreateParagraph()
CreateList
Source code
public virtual List CreateList(string tag)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
tag |
CreateListItem
Source code
public virtual ListItem CreateListItem()
CreateLineSeparator
Source code
public virtual LineSeparator CreateLineSeparator(IDictionary<string, string> attrs)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
attrs |
CreateImage
Source code
public virtual Image CreateImage(IDictionary<string, string> attrs)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
attrs |
CreateCell
Source code
public virtual CellWrapper CreateCell(string tag)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
img |
|
|
|
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 |
|---|---|---|
|
|
pendingTR |
IsPendingTD
Source code
public virtual bool IsPendingTD()
SetPendingTD
Source code
public virtual void SetPendingTD(bool pendingTD)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
pendingTD |
IsPendingLI
Source code
public virtual bool IsPendingLI()
SetPendingLI
Source code
public virtual void SetPendingLI(bool pendingLI)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
pendingLI |
IsInsidePRE
Source code
public virtual bool IsInsidePRE()
SetInsidePRE
Source code
public virtual void SetInsidePRE(bool insidePRE)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
insidePRE |
IsSkipText
Source code
public virtual bool IsSkipText()
SetSkipText
Source code
public virtual void SetSkipText(bool skipText)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
skipText |
ParseToList [1/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
reader |
|
|
|
style |
ParseToList [2/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style, Dictionary<string, object> providers)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
reader |
|
|
|
style |
|
|
|
providers |
ParseToList [3/3]
Source code
public static List<IElement> ParseToList(TextReader reader, StyleSheet style, IDictionary<string, IHTMLTagProcessor> tags, Dictionary<string, object> providers)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
reader |
|
|
|
style |
|
|
> |
tags |
|
|
|
providers |
Add
Source code
public virtual bool Add(IElement element)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
element |
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 |
|---|---|---|
|
|
marginMirroring |
SetMarginMirroringTopBottom
Source code
public virtual bool SetMarginMirroringTopBottom(bool marginMirroring)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
marginMirroring |
SetMargins
Source code
public virtual bool SetMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
marginLeft |
|
|
|
marginRight |
|
|
|
marginTop |
|
|
|
marginBottom |
SetPageSize
Source code
public virtual bool SetPageSize(Rectangle pageSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
pageSize |
SetInterfaceProps
Source code
public virtual void SetInterfaceProps(Dictionary<string, object> providers)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
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