Class PDFStructElem.Placeholder

    • Constructor Detail

      • Placeholder

        public Placeholder​(PDFObject parent)
    • Method Detail

      • outputInline

        public void outputInline​(java.io.OutputStream out,
                                 java.lang.StringBuilder textBuffer)
                          throws java.io.IOException
        Description copied from class: PDFObject
        Writes a "direct object" (inline object) representation to the stream. A text buffer is given for optimized encoding of text content.

        IMPORTANT: If you need to write out binary output, call PDFDocument.flushTextBuffer(StringBuilder, OutputStream) before writing any content to the OutputStream!

        Specified by:
        outputInline in interface PDFWritable
        Overrides:
        outputInline in class PDFObject
        Parameters:
        out - the OutputStream (for binary content)
        textBuffer - the text buffer for text content
        Throws:
        java.io.IOException - if an I/O error occurs
      • getObjectNumber

        public abstract PDFObjectNumber getObjectNumber()
        Returns the object number of this indirect object. Note that a compressed object must have a generation number of 0.
        Returns:
        the object number.