Class PdfLiteral


public class PdfLiteral extends PdfPrimitiveObject
  • Constructor Details

    • PdfLiteral

      public PdfLiteral (byte[] content)
    • PdfLiteral

      public PdfLiteral (int size)
    • PdfLiteral

      public PdfLiteral (String content)
  • Method Details

    • getType

      public byte getType()
      Description copied from class: PdfObject
      Gets object type.
      Specified by:
      getType in class PdfObject
      Returns:
      object type.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPosition

      public long getPosition()
    • setPosition

      public void setPosition (long position)
    • getBytesCount

      public int getBytesCount()
    • generateContent

      protected void generateContent()
      Specified by:
      generateContent in class PdfPrimitiveObject
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newInstance

      protected PdfObject newInstance()
      Description copied from class: PdfObject
      Creates new instance of object.
      Specified by:
      newInstance in class PdfObject
      Returns:
      new instance of object.
    • copyContent

      protected void copyContent (PdfObject from, PdfDocument document, ICopyFilter copyFilter)
      Description copied from class: PdfObject
      Copies object content from object 'from'.
      Overrides:
      copyContent in class PdfPrimitiveObject
      Parameters:
      from - object to copy content from.
      document - document to copy object to.
      copyFilter - ICopyFilter a filter that will apply on dictionaries and array Use NullCopyFilter for no filtering