Class PDFSignature.Contents

    • Constructor Detail

      • Contents

        Contents()
    • Method Detail

      • toPDFString

        protected java.lang.String toPDFString()
        Description copied from class: PDFObject
        This method returns a String representation of the PDF object. The result is normally converted/encoded to a byte array by toPDF(). Only use this method to implement the serialization if the object can be fully represented as text. If the PDF representation of the object contains binary content use toPDF() or output(OutputStream) instead. This applies to any object potentially containing a string object because string object are encrypted and therefore need to be binary.
        Overrides:
        toPDFString in class PDFObject
        Returns:
        String the String representation
      • output

        public int output​(java.io.OutputStream stream)
                   throws java.io.IOException
        Description copied from class: PDFObject
        Write the PDF represention of this object
        Specified by:
        output in interface CompressedObject
        Overrides:
        output in class PDFObject
        Parameters:
        stream - the stream to write the PDF to
        Returns:
        the number of bytes written
        Throws:
        java.io.IOException - if there is an error writing to the stream