Adds a digital signature to a PDF document stored in a stream from a PFX file.
public static void SignDocument(
Stream stream,
string password,
string signatureFileName,
string signaturePassword
)
public:
static void SignDocument(
Stream^ stream,
String^ password,
String^ signatureFileName,
String^ signaturePassword
)
def SignDocument(self,stream,password,signatureFileName,signaturePassword):
stream
Stream containing an existing PDF document to be signed.
password
The password to use if stream contains an encrypted PDF file.
signatureFileName
Name of the file containing the digital signature. This should be a valid PFX file and cannot be null.
signaturePassword
The password to use if the PFX file requires one. Otherwise, null.
SignDocument will add the PFX digital signature in signatureFileName to an existing PDF file. Use ParsePages with the PDFParsePagesOptions.Signatures to read the digital signatures associated with a PDF document.
The application must ensure that digital signature is supported using PDFDocument.GetDigitalSignatureSupportStatus.
The PDF Forms Demo contains a full implementation of PDF signatures.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document