com.qoppa.pdf.permissions
Class DocMDPPermissions

java.lang.Object
  extended by com.qoppa.pdf.permissions.DocMDPPermissions
All Implemented Interfaces:
IPDFPermissions

public class DocMDPPermissions
extends Object
implements IPDFPermissions

This class contains information about the DocMDP (Document modification detection and prevention) permissions. These permissions are applied when the document contains a certifying signature. DocMDP certifying signatures have one of three permission levels.
- 1 Does not allow any changes.
- 2 Allows filling in existing form fields and signatures.
- 3 Allows filling in existing form fields and signatures, and creating, deleting, and modifying annotations.


Constructor Summary
DocMDPPermissions(int permissionLevel)
          Create a new DocMDPPermissions object.
 
Method Summary
 boolean isAssembleDocumentAllowed()
          DocMDP does not allow assembling the document.
 boolean isChangeDocumentAllowed()
          DocMDP does not allow changing the document.
 boolean isExtractTextGraphicsAllowed()
          DocMDP always allows extracting text graphics.
 boolean isExtractTextGraphicsForAccessibilityAllowed()
          DocMDP always allows extracting text graphics for accessibility.
 boolean isFillFormFieldsAllowed()
          DocMDP permission levels 2 and 3 allow filling existing form fields and signatures.
 boolean isModifyAnnotsAllowed()
          DocMDP permission level 3 allows annotations to be created, deleted, and modified.
 boolean isPrintAllowed()
          DocMDP always allows printing.
 boolean isPrintHighResAllowed()
          DocMDP always allows printing at high resolution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocMDPPermissions

public DocMDPPermissions(int permissionLevel)
                  throws PDFException
Create a new DocMDPPermissions object. The permission level must be 1, 2, or 3.

Parameters:
permissionLevel - The permission level.
Throws:
PDFException
Method Detail

isAssembleDocumentAllowed

public boolean isAssembleDocumentAllowed()
DocMDP does not allow assembling the document. This will always return false.

Specified by:
isAssembleDocumentAllowed in interface IPDFPermissions
Returns:
true if document assembly is allowed.

isChangeDocumentAllowed

public boolean isChangeDocumentAllowed()
DocMDP does not allow changing the document. This will always return false.

Specified by:
isChangeDocumentAllowed in interface IPDFPermissions
Returns:
true if changing the document is allowed.

isExtractTextGraphicsAllowed

public boolean isExtractTextGraphicsAllowed()
DocMDP always allows extracting text graphics. This will always return true.

Specified by:
isExtractTextGraphicsAllowed in interface IPDFPermissions
Returns:
true if extracting text graphics is allowed.

isExtractTextGraphicsForAccessibilityAllowed

public boolean isExtractTextGraphicsForAccessibilityAllowed()
DocMDP always allows extracting text graphics for accessibility. This will always return true.

Specified by:
isExtractTextGraphicsForAccessibilityAllowed in interface IPDFPermissions
Returns:
true if extracting text graphics for accessibility is allowed.

isFillFormFieldsAllowed

public boolean isFillFormFieldsAllowed()
DocMDP permission levels 2 and 3 allow filling existing form fields and signatures.

Specified by:
isFillFormFieldsAllowed in interface IPDFPermissions
Returns:
true if filling existing form fields is allowed.

isModifyAnnotsAllowed

public boolean isModifyAnnotsAllowed()
DocMDP permission level 3 allows annotations to be created, deleted, and modified.

Specified by:
isModifyAnnotsAllowed in interface IPDFPermissions
Returns:
true if modifying annotations is allowed.

isPrintAllowed

public boolean isPrintAllowed()
DocMDP always allows printing. This will always return true.

Specified by:
isPrintAllowed in interface IPDFPermissions
Returns:
true if printing the document is allowed.

isPrintHighResAllowed

public boolean isPrintHighResAllowed()
DocMDP always allows printing at high resolution. This will always return true.

Specified by:
isPrintHighResAllowed in interface IPDFPermissions
Returns:
true if printing the document at high resolution is allowed.