tags:

views:

222

answers:

1

I want to sign a pdf with one signature with appearance on every page

Here is what I do:

Create the stamper

 PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0', null, true);

Get the signature appearance

PdfSignatureAppearance sap = st.SignatureAppearance;

populate the properties

 sap.SetCrypto(...);
 sap.Reason = SomeString;
 sap.Contact = SomeString;
 sap.Location = SomeString;

Each stamper has one appearance. I am able to set only signature appearance. Has anyone done something like that? Do I have to create a List of Stampers or a List of SignatureAppearances?

+2  A: 

A single PdfSignatureAppearance is always associated with a single page and it's not possible to add more than one annotation to a signature object.

Pent Ploompuu