com.qoppa.pdf.permissions
Class UsageRightsPermissions

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

public class UsageRightsPermissions
extends Object
implements IPDFPermissions

This class contains information about Usage Rights. Usage rights are used by PDF documents that have been "Adobe Reader Enabled", they protect the document from most changes while still allowing modifications to annotations and in some cases filling existing form fields. Enforcing Usage Rights permissions when manipulating a document will preserve the "Adobe Reader Enablement" status and avoid a warning message when opening the document in Adobe Reader. If not concerned with the Adobe Reader Enablement status, it is possible to simply clear the Usage Rights permissions.


Constructor Summary
UsageRightsPermissions(boolean formFill)
          Construct a new UsageRights instance.
 
Method Summary
 boolean isAssembleDocumentAllowed()
          Usage rights never allow assembling the document.
 boolean isChangeDocumentAllowed()
          Usage Rights never allow changing the document.
 boolean isExtractTextGraphicsAllowed()
          Usage Rights always allow extracting text graphics.
 boolean isExtractTextGraphicsForAccessibilityAllowed()
          Usage Rights always allow extracting text graphics for accessibility.
 boolean isFillFormFieldsAllowed()
          Returns true if the Usage Rights allow filling existing form fields and signatures.
 boolean isModifyAnnotsAllowed()
          Usage Rights always allow modifying annotations.
 boolean isPrintAllowed()
          Usage Rights always allow printing.
 boolean isPrintHighResAllowed()
          Usage Rights always allow printing in high resolution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsageRightsPermissions

public UsageRightsPermissions(boolean formFill)
Construct a new UsageRights instance.

Parameters:
formFill - Set to true if form fill is allowed.
Method Detail

isAssembleDocumentAllowed

public boolean isAssembleDocumentAllowed()
Usage rights never allow assembling the document. This method will always return false.

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

isChangeDocumentAllowed

public boolean isChangeDocumentAllowed()
Usage Rights never allow changing the document. This method will always return false.

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

isExtractTextGraphicsAllowed

public boolean isExtractTextGraphicsAllowed()
Usage Rights always allow extracting text graphics. This method will always return true.

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

isExtractTextGraphicsForAccessibilityAllowed

public boolean isExtractTextGraphicsForAccessibilityAllowed()
Usage Rights always allow extracting text graphics for accessibility. This method will always return true.

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

isFillFormFieldsAllowed

public boolean isFillFormFieldsAllowed()
Returns true if the Usage Rights 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()
Usage Rights always allow modifying annotations. This method will always return true.

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

isPrintAllowed

public boolean isPrintAllowed()
Usage Rights always allow printing. This method will always return true.

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

isPrintHighResAllowed

public boolean isPrintHighResAllowed()
Usage Rights always allow printing in high resolution. This method will always return true.

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