Class PdfLiteral

java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfLiteral

public class PdfLiteral extends PdfObject
a Literal
  • Constructor Details

    • PdfLiteral

      public PdfLiteral(String text)
    • PdfLiteral

      public PdfLiteral(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