intarsys PDF library API

de.intarsys.pdf.pd
Class AcroFormSigFlags

java.lang.Object
  extended by de.intarsys.pdf.pd.AbstractBitFlags
      extended by 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).


Field Summary
static int Bit_AppendOnly
           
static int Bit_SignatureExists
           
 
Constructor Summary
AcroFormSigFlags(PDAcroForm form)
           
 
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.
 
Methods inherited from class de.intarsys.pdf.pd.AbstractBitFlags
isSetAnd, isSetOr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Bit_SignatureExists

public static int Bit_SignatureExists

Bit_AppendOnly

public static int Bit_AppendOnly
Constructor Detail

AcroFormSigFlags

public AcroFormSigFlags(PDAcroForm form)
Method Detail

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)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.