Interface PDFWritable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void outputInline​(java.io.OutputStream out, java.lang.StringBuilder textBuffer)
      Writes a "direct object" (inline object) representation to the stream.
    • Method Detail

      • outputInline

        void outputInline​(java.io.OutputStream out,
                          java.lang.StringBuilder textBuffer)
                   throws java.io.IOException
        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!

        Parameters:
        out - the OutputStream (for binary content)
        textBuffer - the text buffer for text content
        Throws:
        java.io.IOException - if an I/O error occurs