SignerCertify Method |
Add a document certification signature
This type of signature lets you detect rejected changes specified by the author. These signatures are also called Modification Detection and Prevention (MDP) signatures. The allowed permissions are defined by permissions.
The features and format of the signature are defined by the Provider and the configuration.
Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.
public Document Certify( Document document, SignatureConfiguration configuration, Stream stream, MdpPermissionOptions permissions = null, OutputOptions outputOptions = null )
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. |
ArgumentException | If the configuration is invalid, e.g. because the creating provider has been closed. |
NotFoundException | If the FieldName does not exist in document. |
RetryException | If an unexpected error occurs that can be resolved by retrying the operation. For example, if a signature service returns an unexpectedly large signature. |
RetryException | If a resource required by the cryptographic provider is temporarily unavailable. |
HttpException | If a network error occurs, e.g. downloading revocation information (OCSP, CRL) or a time-stamp. |
UnsupportedFeatureException | If the cryptographic provider does not support the requested signing algorithm. |
PermissionException | If the cryptographic provider does not allow the signing operation. |
ArgumentNullException | if document is . |
ArgumentNullException | if configuration is . |
ArgumentNullException | if stream is . |