Class PdfLiteral

java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfLiteral

public class PdfLiteral extends PdfObject
a Literal
  • Field Details

    • position

      private long position
      Holds value of property position.
  • Constructor Details

    • PdfLiteral

      public PdfLiteral(String text)
    • PdfLiteral

      public PdfLiteral(byte[] b)
    • PdfLiteral

      public PdfLiteral(int size)
    • PdfLiteral

      public PdfLiteral(int type, String text)
    • PdfLiteral

      public PdfLiteral(int type, byte[] b)
  • Method Details

    • toPdf

      public void toPdf(PdfWriter writer, OutputStream os) throws IOException
      Description copied from class: PdfObject
      Writes the PDF representation of this PdfObject as an array of bytes to the writer.
      Overrides:
      toPdf in class PdfObject
      Parameters:
      writer - for backwards compatibility
      os - The OutputStream to write the bytes to.
      Throws:
      IOException - on error
    • getPosition

      public long getPosition()
      Getter for property position.
      Returns:
      Value of property position.
    • getPosLength

      public int getPosLength()
      Getter for property posLength.
      Returns:
      Value of property posLength.