public class PdfSigFieldLock extends PdfObjectWrapper<PdfDictionary>
| Modifier and Type | Class and Description |
|---|---|
static class |
PdfSigFieldLock.LockAction
Enumerates the different actions of a signature field lock.
|
static class |
PdfSigFieldLock.LockPermissions
Enumerates the different levels of access permissions granted for
the document when the corresponding signature field is signed:
PdfSigFieldLock.LockPermissions.NO_CHANGES_ALLOWED - no changes to the document are
permitted; any change to the document invalidates the signature,
PdfSigFieldLock.LockPermissions.FORM_FILLING - permitted changes are filling in forms,
instantiating page templates, and signing; other changes invalidate
the signature,
PdfSigFieldLock.LockPermissions.FORM_FILLING_AND_ANNOTATION - permitted changes are the
same as for the previous, as well as annotation creation, deletion,
and modification; other changes invalidate the signature. |
| Constructor and Description |
|---|
PdfSigFieldLock()
Creates an instance of
PdfSigFieldLock. |
PdfSigFieldLock(PdfDictionary dict)
Creates an instance of
PdfSigFieldLock. |
| Modifier and Type | Method and Description |
|---|---|
static PdfName |
getLockActionValue(PdfSigFieldLock.LockAction action) |
static PdfNumber |
getLockPermission(PdfSigFieldLock.LockPermissions permissions) |
protected boolean |
isWrappedObjectMustBeIndirect() |
PdfSigFieldLock |
setDocumentPermissions(PdfSigFieldLock.LockPermissions permissions)
Sets the permissions granted for the document when the corresponding signature
field is signed.
|
PdfSigFieldLock |
setFieldLock(PdfSigFieldLock.LockAction action,
String... fields)
Sets signature lock for specific fields in the document.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic PdfSigFieldLock()
PdfSigFieldLock.public PdfSigFieldLock(PdfDictionary dict)
PdfSigFieldLock.dict - The dictionary whose entries should be added to
the signature field lock dictionary.public PdfSigFieldLock setDocumentPermissions(PdfSigFieldLock.LockPermissions permissions)
PdfSigFieldLock.LockPermissions
for getting more info.permissions - The permissions granted for the document.PdfSigFieldLock object.public PdfSigFieldLock setFieldLock(PdfSigFieldLock.LockAction action, String... fields)
action - Indicates the set of fields that should be locked after the actual
signing of the corresponding signature takes place.fields - Names indicating the fields.PdfSigFieldLock object.public static PdfName getLockActionValue(PdfSigFieldLock.LockAction action)
public static PdfNumber getLockPermission(PdfSigFieldLock.LockPermissions permissions)
protected boolean isWrappedObjectMustBeIndirect()
isWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfDictionary>Copyright © 1998–2022 iText Group NV. All rights reserved.