SignerAdd |
Add a document time-stamp
This type of signature provides evidence that the document existed at a specific time and protects the document’s integrity.
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 AddTimestamp( Document document, TimestampConfiguration configuration, Stream stream, 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 . |