| SignerProcess Method |
Process a document
Apply document-level processing options without any signature operation.
For example:
-
To encrypt or decrypt PDF documents that may be signed (see the samples "Encrypt" and "Decrypt").
-
To remove signatures and unsigned signature fields (see RemoveSignatures).
-
To add validation information to existing signatures (see AddValidationInformation).
Non-critical processing errors raise a Warning.
It is recommended to review the WarningCategory and handle them if necessary for the application.
Namespace: PdfTools.SignAssembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax public Document Process(
Document document,
Stream stream,
OutputOptions outputOptions = null,
Provider provider = null
)
Parameters
- document Document
-
The input document to process
- stream Stream
-
The stream where the output document is written
- outputOptions OutputOptions (Optional)
-
The document-level processing options
- provider Provider (Optional)
-
The cryptographic provider to use to add validation information to existing signatures of input document
(see AddValidationInformation).
Can be if no validation information is added or to use the default provider.
Return Value
DocumentExceptions Exception | Condition |
---|
LicenseException | The license check has failed. |
IOException | Writing to the stream failed. |
UnsupportedFeatureException | The input PDF contains unrendered XFA form fields.
See Xfa for more information on how to detect and handle XFA documents. |
HttpException | If a network error occurs, e.g. downloading revocation information (OCSP, CRL). |
ArgumentNullException | if document is . |
ArgumentNullException | if stream is . |
See Also