java.lang.Object
com.lowagie.text.pdf.PdfChunk
Deprecated.
A
PdfChunk is the PDF translation of a Chunk.
A PdfChunk is a PdfString in a certain
PdfFont and Color.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Metric attributes.protected BaseFontDeprecated.protected booleanDeprecated.Indicates if the height and offset of the Image has to be taken into accountprotected StringDeprecated.The encoding.protected com.lowagie.text.pdf.PdfFontDeprecated.The font for thisPdfChunk.protected ImageDeprecated.The image in thisPdfChunk, if it has oneprotected booleanDeprecated.trueif the chunk split was cause by a newline.Deprecated.Non metric attributes.protected floatDeprecated.The offset in the x direction for the imageprotected floatDeprecated.The offset in the y direction for the imageprotected SplitCharacterDeprecated.protected StringDeprecated.The value of this object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.floatDeprecated.Gets the text displacement relative to the baseline.intgetUnicodeEquivalent(int c) Deprecated.Gets the Unicode equivalent to a CID.floatgetWidthCorrected(float charSpacing, float wordSpacing) Deprecated.Gets the width of thePdfChunktaking into account the extra character and word spacing.protected intDeprecated.booleanDeprecated.Checks if thePdfChunksplit was caused by a newline.static booleannoPrint(int c) Deprecated.toString()Deprecated.floatDeprecated.floatDeprecated.Trims the last space.
-
Field Details
-
value
Deprecated.The value of this object. -
encoding
Deprecated.The encoding. -
font
protected com.lowagie.text.pdf.PdfFont fontDeprecated.The font for thisPdfChunk. -
baseFont
Deprecated. -
splitCharacter
Deprecated. -
attributes
Deprecated.Metric attributes.This attributes require the measurement of characters widths when rendering such as underline.
-
noStroke
Deprecated.Non metric attributes.This attributes do not require the measurement of characters widths when rendering such as Color.
-
newlineSplit
protected boolean newlineSplitDeprecated.trueif the chunk split was cause by a newline. -
image
Deprecated.The image in thisPdfChunk, if it has one -
offsetX
protected float offsetXDeprecated.The offset in the x direction for the image -
offsetY
protected float offsetYDeprecated.The offset in the y direction for the image -
changeLeading
protected boolean changeLeadingDeprecated.Indicates if the height and offset of the Image has to be taken into account
-
-
Method Details
-
noPrint
public static boolean noPrint(int c) Deprecated. -
getUnicodeEquivalent
public int getUnicodeEquivalent(int c) Deprecated.Gets the Unicode equivalent to a CID. The (nonexistent) CIDFF00is translated as '\n'. It has only meaning with CJK fonts with Identity encoding.- Parameters:
c- the CID code- Returns:
- the Unicode equivalent
-
getWord
Deprecated. -
isNewlineSplit
public boolean isNewlineSplit()Deprecated.Checks if thePdfChunksplit was caused by a newline.- Returns:
trueif thePdfChunksplit was caused by a newline.
-
getWidthCorrected
public float getWidthCorrected(float charSpacing, float wordSpacing) Deprecated.Gets the width of thePdfChunktaking into account the extra character and word spacing.- Parameters:
charSpacing- the extra character spacingwordSpacing- the extra word spacing- Returns:
- the calculated width
-
getTextRise
public float getTextRise()Deprecated.Gets the text displacement relative to the baseline.- Returns:
- a displacement in points
-
trimLastSpace
public float trimLastSpace()Deprecated.Trims the last space.- Returns:
- the width of the space trimmed, otherwise 0
-
trimFirstSpace
public float trimFirstSpace()Deprecated. -
toString
Deprecated. -
changeLeading
public boolean changeLeading()Deprecated.
-