Class PdfLiteral

    • Constructor Detail

      • 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 Detail

      • 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
      • 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.