準備済み署名の追加は特殊な利用形態で必要です。このメソッドはSign(Document, SignatureConfiguration, Stream, OutputOptions)と同じですが、署名そのものは作成されません。署名はSignPreparedSignature(Document, SignatureConfiguration, Stream)を使用して後から挿入できます。
定義
public PreparedDocument AddPreparedSignature( Document document, SignatureConfiguration configuration, Stream stream, OutputOptions outputOptions = null )
例外
例外 | 条件 |
---|---|
LicenseException | ライセンスが不正 |
IOException | streamの書き込みに失敗 |
UnsupportedFeatureException | 入力PDFにレンダリングされていないXFAフォームフィールドがある |
ArgumentException | configurationが無効(作成元のプロバイダが閉じられているなど) |
NotFoundException | PdfTools.Sign.SignatureConfiguration.FieldNameがconfiguration内に存在しない |
UnsupportedFeatureException | 暗号化プロバイダーが要求された署名アルゴリズムをサポートしていない |
HttpException | 失効情報(OCSP、CRL)のダウンロードなどでネットワーク エラーが発生した |
ArgumentNullException | documentがnull |
ArgumentNullException | configurationがnull |
ArgumentNullException | streamがnull |