Class PDFSignature.Contents

java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFSignature.Contents
All Implemented Interfaces:
CompressedObject, PDFWritable
Enclosing class:
PDFSignature

class PDFSignature.Contents extends PDFObject
  • Constructor Details

    • Contents

      Contents()
  • Method Details

    • toPDFString

      protected 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(OutputStream stream) throws 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:
      IOException - if there is an error writing to the stream