/** * Creates a signature lock for specific fields in the document. */ public PdfSigLockDictionary(LockAction action, LockPermissions p, params String[] fields) : base(PdfName.SIGFIELDLOCK) { this.Put(PdfName.ACTION, action.Value); if (p != null) this.Put(PdfName.P, p.Value); PdfArray fieldsArray = new PdfArray(); foreach (String field in fields) { fieldsArray.Add(new PdfString(field)); } this.Put(PdfName.FIELDS, fieldsArray); }
/** * Creates a signature lock for specific fields in the document. */ public PdfSigLockDictionary(LockAction action, LockPermissions p, params String[] fields) : base(PdfName.SIGFIELDLOCK) { this.Put(PdfName.ACTION, action.Value); if (p != null) { this.Put(PdfName.P, p.Value); } PdfArray fieldsArray = new PdfArray(); foreach (String field in fields) { fieldsArray.Add(new PdfString(field)); } this.Put(PdfName.FIELDS, fieldsArray); }
/** * Creates a signature lock for all fields in the document, * setting specific permissions. */ public PdfSigLockDictionary(LockPermissions p) : this() { this.Put(PdfName.P, p.Value); }