de.intarsys.pdf.pd
Class AcroFormSigFlags
java.lang.Object
de.intarsys.pdf.pd.AbstractBitFlags
de.intarsys.pdf.pd.AcroFormSigFlags
public class AcroFormSigFlags
- extends AbstractBitFlags
The flags of a signature field.
The flags are bits of an integer.
The following bits are defined (more may exist).
- 0: default
- 1: SignatureExists
- 2: AppendOnly
Method Summary |
boolean |
isAppendOnly()
|
boolean |
isSignatureExists()
|
void |
setAppendOnly(boolean appendOnly)
excerpt from PDF 1.7 spec (p. 674):
If set, the document contains signatures that may be invalidated if the
file is saved (written) in a way that alters its previous contents, as
opposed to an incremental update. |
void |
setSignatureExists(boolean signatureExists)
excerpt from PDF 1.7 spec (p. 674):
If set, the document contains at least one signature field. |
Bit_SignatureExists
public static int Bit_SignatureExists
Bit_AppendOnly
public static int Bit_AppendOnly
AcroFormSigFlags
public AcroFormSigFlags(PDAcroForm form)
setAppendOnly
public void setAppendOnly(boolean appendOnly)
- excerpt from PDF 1.7 spec (p. 674):
If set, the document contains signatures that may be invalidated if the
file is saved (written) in a way that alters its previous contents, as
opposed to an incremental update. Merely updating the file by appending
new information to the end of the previous version is safe (see Section
G.6, “Updating Example”). Viewer applications can use this flag to
present a user requesting a full save with an additional alert box
warning that signatures will be invalidated and requiring explicit
confirmation before continuing with the operation.
- Parameters:
appendOnly
-
isAppendOnly
public boolean isAppendOnly()
- Returns:
- appendOnly flag
- See Also:
setAppendOnly(boolean)
setSignatureExists
public void setSignatureExists(boolean signatureExists)
- excerpt from PDF 1.7 spec (p. 674):
If set, the document contains at least one signature field. This flag
allows a viewer application to enable user interface items (such as menu
items or pushbuttons) related to signature processing without having to
scan the entire document for the presence of signature fields.
- Parameters:
signatureExists
-
isSignatureExists
public boolean isSignatureExists()
- Returns:
- signatureExists flag
- See Also:
setSignatureExists(boolean)
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.