Class PdfChunk

java.lang.Object
com.lowagie.text.pdf.PdfChunk

@Deprecated public class PdfChunk extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    protected Map<String,Object>
    Deprecated.
    Metric attributes.
    protected BaseFont
    Deprecated.
     
    protected boolean
    Deprecated.
    Indicates if the height and offset of the Image has to be taken into account
    protected String
    Deprecated.
    The encoding.
    protected com.lowagie.text.pdf.PdfFont
    Deprecated.
    The font for this PdfChunk.
    protected Image
    Deprecated.
    The image in this PdfChunk, if it has one
    protected boolean
    Deprecated.
    true if the chunk split was cause by a newline.
    protected Map<String,Object>
    Deprecated.
    Non metric attributes.
    protected float
    Deprecated.
    The offset in the x direction for the image
    protected float
    Deprecated.
    The offset in the y direction for the image
    protected SplitCharacter
    Deprecated.
     
    protected String
    Deprecated.
    The value of this object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    float
    Deprecated.
    Gets the text displacement relative to the baseline.
    int
    Deprecated.
    Gets the Unicode equivalent to a CID.
    float
    getWidthCorrected(float charSpacing, float wordSpacing)
    Deprecated.
    Gets the width of the PdfChunk taking into account the extra character and word spacing.
    protected int
    getWord(String text, int start)
    Deprecated.
     
    boolean
    Deprecated.
    Checks if the PdfChunk split was caused by a newline.
    static boolean
    noPrint(int c)
    Deprecated.
     
    Deprecated.
     
    float
    Deprecated.
     
    float
    Deprecated.
    Trims the last space.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      protected String value
      Deprecated.
      The value of this object.
    • encoding

      protected String encoding
      Deprecated.
      The encoding.
    • font

      protected com.lowagie.text.pdf.PdfFont font
      Deprecated.
      The font for this PdfChunk.
    • baseFont

      protected BaseFont baseFont
      Deprecated.
    • splitCharacter

      protected SplitCharacter splitCharacter
      Deprecated.
    • attributes

      protected Map<String,Object> attributes
      Deprecated.
      Metric attributes.

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

    • noStroke

      protected Map<String,Object> noStroke
      Deprecated.
      Non metric attributes.

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

    • newlineSplit

      protected boolean newlineSplit
      Deprecated.
      true if the chunk split was cause by a newline.
    • image

      protected Image image
      Deprecated.
      The image in this PdfChunk, if it has one
    • offsetX

      protected float offsetX
      Deprecated.
      The offset in the x direction for the image
    • offsetY

      protected float offsetY
      Deprecated.
      The offset in the y direction for the image
    • changeLeading

      protected boolean changeLeading
      Deprecated.
      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) CID FF00 is translated as '\n'. It has only meaning with CJK fonts with Identity encoding.
      Parameters:
      c - the CID code
      Returns:
      the Unicode equivalent
    • getWord

      protected int getWord(String text, int start)
      Deprecated.
    • isNewlineSplit

      public boolean isNewlineSplit()
      Deprecated.
      Checks if the PdfChunk split was caused by a newline.
      Returns:
      true if the PdfChunk split was caused by a newline.
    • getWidthCorrected

      public float getWidthCorrected(float charSpacing, float wordSpacing)
      Deprecated.
      Gets the width of the PdfChunk taking into account the extra character and word spacing.
      Parameters:
      charSpacing - the extra character spacing
      wordSpacing - 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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
      See Also:
    • changeLeading

      public boolean changeLeading()
      Deprecated.