Class PdfChunk
java.lang.Object
com.aowagie.text.pdf.PdfChunk
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 TypeFieldDescriptionprotected booleanIndicates if the height and offset of the Image has to be taken into accountprotected com.aowagie.text.pdf.PdfFontThe font for thisPdfChunk. -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the text displacement relative to the baseline.booleanChecks if thePdfChunksplit was caused by a newline.toString()float
-
Field Details
-
font
protected com.aowagie.text.pdf.PdfFont fontThe font for thisPdfChunk. -
changeLeading
protected boolean changeLeadingIndicates if the height and offset of the Image has to be taken into account
-
-
Method Details
-
isNewlineSplit
public boolean isNewlineSplit()Checks if thePdfChunksplit was caused by a newline.- Returns:
trueif thePdfChunksplit was caused by a newline.
-
getTextRise
public float getTextRise()Gets the text displacement relative to the baseline.- Returns:
- a displacement in points
-
trimFirstSpace
public float trimFirstSpace() -
toString
-