Class BidiLine
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
Does all the line bidirectional processing with PdfChunk assembly. @author Paulo Soares (psoares@consiste.pt)
public class BidiLine
- Inheritance
-
BidiLine
- Inherited Members
Constructors
BidiLine()
Creates new BidiLine
public BidiLine()
BidiLine(BidiLine)
public BidiLine(BidiLine org)
Parameters
org
BidiLine
Fields
ArabicOptions
protected int ArabicOptions
Field Value
Chunks
protected List<PdfChunk> Chunks
Field Value
CurrentChar
protected int CurrentChar
Field Value
DetailChunks
protected PdfChunk[] DetailChunks
Field Value
- PdfChunk[]
IndexChars
protected int[] IndexChars
Field Value
- int[]
IndexChunk
protected int IndexChunk
Field Value
IndexChunkChar
protected int IndexChunkChar
Field Value
MirrorChars
protected static NullValueDictionary<int, int> MirrorChars
Field Value
OrderLevels
protected byte[] OrderLevels
Field Value
- byte[]
PieceSize
protected int PieceSize
Field Value
RunDirection
protected int RunDirection
Field Value
ShortStore
protected bool ShortStore
Field Value
StoredCurrentChar
protected int StoredCurrentChar
Field Value
StoredDetailChunks
protected PdfChunk[] StoredDetailChunks
Field Value
- PdfChunk[]
StoredIndexChars
protected int[] StoredIndexChars
Field Value
- int[]
StoredIndexChunk
protected int StoredIndexChunk
Field Value
StoredIndexChunkChar
protected int StoredIndexChunkChar
Field Value
StoredOrderLevels
protected byte[] StoredOrderLevels
Field Value
- byte[]
StoredRunDirection
protected int StoredRunDirection
Field Value
StoredText
protected char[] StoredText
Field Value
- char[]
StoredTotalTextLength
protected int StoredTotalTextLength
Field Value
Text
protected char[] Text
Field Value
- char[]
TotalTextLength
protected int TotalTextLength
Field Value
Methods
AddChunk(PdfChunk)
public void AddChunk(PdfChunk chunk)
Parameters
chunk
PdfChunk
AddChunks(IList<PdfChunk>)
public void AddChunks(IList<PdfChunk> chunks)
Parameters
AddPiece(char, PdfChunk)
public void AddPiece(char c, PdfChunk chunk)
Parameters
ClearChunks()
public void ClearChunks()
CreateArrayOfPdfChunks(int, int)
public IList<PdfChunk> CreateArrayOfPdfChunks(int startIdx, int endIdx)
Parameters
Returns
CreateArrayOfPdfChunks(int, int, PdfChunk)
public IList<PdfChunk> CreateArrayOfPdfChunks(int startIdx, int endIdx, PdfChunk extraPdfChunk)
Parameters
Returns
DoArabicShapping()
public void DoArabicShapping()
Flip(int, int)
public void Flip(int start, int end)
Parameters
GetParagraph(int)
public bool GetParagraph(int runDirection)
Parameters
runDirection
int
Returns
GetWidth(int, int)
Gets the width of a range of characters.
public float GetWidth(int startIdx, int lastIdx)
Parameters
Returns
- float
the sum of all widths
GetWord(int, int)
public int[] GetWord(int startIdx, int idx)
Parameters
Returns
- int[]
IsEmpty()
public bool IsEmpty()
Returns
IsWs(char)
public static bool IsWs(char c)
Parameters
c
char
Returns
MirrorGlyphs()
public void MirrorGlyphs()
ProcessLine(float, float, int, int, int)
public PdfLine ProcessLine(float leftX, float width, int alignment, int runDirection, int arabicOptions)
Parameters
Returns
Reorder(int, int)
public void Reorder(int start, int end)
Parameters
Restore()
public void Restore()
Save()
public void Save()
TrimLeft(int, int)
public int TrimLeft(int startIdx, int endIdx)
Parameters
Returns
TrimLeftEx(int, int)
public int TrimLeftEx(int startIdx, int endIdx)
Parameters
Returns
TrimRight(int, int)
public int TrimRight(int startIdx, int endIdx)
Parameters
Returns
TrimRightEx(int, int)
public int TrimRightEx(int startIdx, int endIdx)