Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Sign(string SigReason, string SigContact, string SigLocation, bool visible)
- {
- PdfReader reader = new PdfReader(this.inputPDF);
- /*ERROR-->*/PdfEncryptor.Encrypt(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), true, null, null, PdfWriter.AllowFillIn | PdfWriter.AllowScreenReaders);
- PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '