Skip to content

PdfComputedDigitalSignature.SaveSignedCopy Method

SaveSignedCopy(Stream,Stream)

Saves a copy of the PDF file that is covered by this signature.

C#
public void SaveSignedCopy(Stream signedFile, Stream output)

Parameters

signedFile Stream

The input PDF file that was used to create the document from which this signature object was retrieved.

output Stream

Destination stream where to save the signed copy.

Remarks

The stream used to create the PdfFixedDocument 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 PdfFixedDocument object.