HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfChunk Class Reference

Public Member Functions

int GetUnicodeEquivalent (int c)
 
bool IsNewlineSplit ()
 
float GetWidthCorrected (float charSpacing, float wordSpacing)
 
float TrimLastSpace ()
 
float TrimFirstSpace ()
 
override string ToString ()
 

Static Public Member Functions

static bool NoPrint (int c)
 

Protected Member Functions

int GetWord (string text, int start)
 

Protected Attributes

string value = PdfObject.NOTHING
 
string encoding = BaseFont.WINANSI
 
PdfFont font
 
BaseFont baseFont
 
ISplitCharacter splitCharacter
 
Hashtable attributes = new Hashtable()
 
Hashtable noStroke = new Hashtable()
 
bool newlineSplit
 
Image image
 
float offsetX
 
float offsetY
 
bool changeLeading = false
 

Properties

float TextRise [get]
 
bool ChangeLeading [get]
 

Detailed Description

A PdfChunk is the PDF translation of a Chunk.

A PdfChunk is a PdfString in a certain PdfFont and Color.

See also
PdfString
PdfFont
iTextSharp.text.Chunk
iTextSharp.text.Font

Member Function Documentation

◆ GetUnicodeEquivalent()

int iTextSharp.text.pdf.PdfChunk.GetUnicodeEquivalent ( int  c)

Gets the Unicode equivalent to a CID. The (inexistent) CID <FF00> is translated as '
'. It has only meaning with CJK fonts with Identity encoding.

Parameters
cthe CID code
Returns
the Unicode equivalent

◆ GetWidthCorrected()

float iTextSharp.text.pdf.PdfChunk.GetWidthCorrected ( float  charSpacing,
float  wordSpacing 
)

Gets the width of the PdfChunk taking into account the extra character and word spacing.

Parameters
charSpacingthe extra character spacing
wordSpacingthe extra word spacing
Returns
the calculated width

◆ GetWord()

int iTextSharp.text.pdf.PdfChunk.GetWord ( string  text,
int  start 
)
protected

◆ IsNewlineSplit()

bool iTextSharp.text.pdf.PdfChunk.IsNewlineSplit ( )

Checks if the PdfChunk split was caused by a newline.

Returns
true if the PdfChunk split was caused by a newline.

◆ NoPrint()

static bool iTextSharp.text.pdf.PdfChunk.NoPrint ( int  c)
static

◆ ToString()

override string iTextSharp.text.pdf.PdfChunk.ToString ( )

◆ TrimFirstSpace()

float iTextSharp.text.pdf.PdfChunk.TrimFirstSpace ( )

◆ TrimLastSpace()

float iTextSharp.text.pdf.PdfChunk.TrimLastSpace ( )

Trims the last space.

Returns
the width of the space trimmed, otherwise 0

Member Data Documentation

◆ attributes

Hashtable iTextSharp.text.pdf.PdfChunk.attributes = new Hashtable()
protected

Metric attributes.

This attributes require the mesurement of characters widths when rendering such as underline.

◆ baseFont

BaseFont iTextSharp.text.pdf.PdfChunk.baseFont
protected

◆ changeLeading

bool iTextSharp.text.pdf.PdfChunk.changeLeading = false
protected

Indicates if the height and offset of the Image has to be taken into account

◆ encoding

string iTextSharp.text.pdf.PdfChunk.encoding = BaseFont.WINANSI
protected

The encoding.

◆ font

PdfFont iTextSharp.text.pdf.PdfChunk.font
protected

The font for this PdfChunk.

◆ image

Image iTextSharp.text.pdf.PdfChunk.image
protected

The image in this PdfChunk, if it has one

◆ newlineSplit

bool iTextSharp.text.pdf.PdfChunk.newlineSplit
protected

true if the chunk split was cause by a newline.

◆ noStroke

Hashtable iTextSharp.text.pdf.PdfChunk.noStroke = new Hashtable()
protected

Non metric attributes.

This attributes do not require the mesurement of characters widths when rendering such as Color.

◆ offsetX

float iTextSharp.text.pdf.PdfChunk.offsetX
protected

The offset in the x direction for the image

◆ offsetY

float iTextSharp.text.pdf.PdfChunk.offsetY
protected

The offset in the y direction for the image

◆ splitCharacter

ISplitCharacter iTextSharp.text.pdf.PdfChunk.splitCharacter
protected

◆ value

string iTextSharp.text.pdf.PdfChunk.value = PdfObject.NOTHING
protected

The value of this object.

Property Documentation

◆ ChangeLeading

bool iTextSharp.text.pdf.PdfChunk.ChangeLeading
get

◆ TextRise

float iTextSharp.text.pdf.PdfChunk.TextRise
get

Gets the text displacement relatiev to the baseline.

Returns
a displacement in points

The documentation for this class was generated from the following file: