PDF4Java Reference Documentation
com.o2sol.pdf4java.digitalsignatures Package / PDFComputedDigitalSignature Class / saveSignedCopy Method
The input PDF file that was used to create the document from which this signature Object was retrieved.
Destination stream where to save the signed copy.
Collapse All Expand All
In This Topic

saveSignedCopy Method
In This Topic
Saves a copy of the PDF file that is covered by this signature.
The stream used to create the object from which this signature was retrieved is required as input because the document does not keep a reference to the stream it was created from. Because the digital signatures are computed on the physical layout of the PDF file, it is impossible to recreate this layout from a loaded object.
Syntax

    public void saveSignedCopy(
       Stream signedFile,
       Stream output
    )

#### Parameters

signedFile
  The input PDF file that was used to create the document from which this signature Object was retrieved.
output
  Destination stream where to save the signed copy.

See Also

#### Reference

PDFComputedDigitalSignature Class
PDFComputedDigitalSignature Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.