Sign a PDF with one signature but with multiple signatures

I want to sign a PDF file with one signature with the appearance on each page

That's what I'm doing:

Create a stamp

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

Get the look of the signature

PdfSignatureAppearance sap = st.SignatureAppearance;

fill properties

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

Each template has one look. I can only set the look. Has anyone done something like this? Do I need to create a list of stamps or a list of signatures?

+3
source share
1 answer

The only PdfSignatureAppearanceone is always associated with one page, and it is impossible to add more than one annotation to the signature object.

+3
source

Source: https://habr.com/ru/post/1733151/


All Articles