Gnostice PDFOne
Pro. Ed. v1.41


com.gnostice.pdfone
Class PdfEncryption

java.lang.Object
  extended bycom.gnostice.pdfone.PdfEncryption

public class PdfEncryption
extends Object

This class is used to specify the encryption settings and access permissions for a document.

Since:
1.0
Version:
1.0

Field Summary
static int AllowAccessibility
          User access permission that allows for extracting text and graphics meant for applications such as providing accessibility to persons with disabilities.
static int AllowAssembly
          User access permission that allows for assembling the document, including inserting, rotating, or deleting pages and creating bookmarks or thumbnail images, even when AllowModifyContents has not been specified.
static int AllowCopy
          User access permission that allows for copying or extracting of all text and graphics, but not those covered by AllowAccessibility.
static int AllowFormFill
          User access permission that allows for filling in existing form fields (including signature fields) even when AllowModifyAnnotations has not been specified.
static int AllowHighResPrint
          User access permission that allows for printing a document with quality of appearance high enough to be able to reproduce an exact digital copy.
static int AllowModifyAnnotations
          User access permission that allows for adding or modifying text annotations and filling in interactive form fields, and, in conjunction with AllowModifyContents, allows for creating or modifying interactive form fields (including signature fields).
static int AllowModifyContents
          User access permission that allows for modification of document through means other than those specified by AllowModifyAnnotations, AllowFormFill, and AllowAssembly.
static int AllowPrinting
          User access permission that allows for printing of document, but not necessarily at quality level specified by AllowHighResPrint.
static int LEVEL_128_BIT
          Encryption key lenth of 128 bits.
static int LEVEL_40_BIT
          Encryption key lenth of 40 bits.
 
Method Summary
 String getOwnerPwd()
          Returns owner password specified for this PdfEncryption object.
 int getPermissions()
          Returns user access permissions specified for this PdfEncryption object.
 String getUserPwd()
          Returns user password specified for this PdfEncryption object.
 void setLevel(int level)
          Specifies encryption key length for this PdfEncryption object.
 void setOwnerPwd(String ownerPwd)
          Specifies owner password for this PdfEncryption object.
 void setPermissions(int permissions)
          Specifies user access permissions for this PdfEncryption object.
 void setUserPwd(String userPwd)
          Specifies user password for this PdfEncryption object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEVEL_40_BIT

public static final int LEVEL_40_BIT
Encryption key lenth of 40 bits.

See Also:
Constant Field Values

LEVEL_128_BIT

public static final int LEVEL_128_BIT
Encryption key lenth of 128 bits.

See Also:
Constant Field Values

AllowPrinting

public static final int AllowPrinting
User access permission that allows for printing of document, but not necessarily at quality level specified by AllowHighResPrint.

See Also:
Constant Field Values

AllowModifyContents

public static final int AllowModifyContents
User access permission that allows for modification of document through means other than those specified by AllowModifyAnnotations, AllowFormFill, and AllowAssembly.

See Also:
Constant Field Values

AllowCopy

public static final int AllowCopy
User access permission that allows for copying or extracting of all text and graphics, but not those covered by AllowAccessibility.

See Also:
Constant Field Values

AllowModifyAnnotations

public static final int AllowModifyAnnotations
User access permission that allows for adding or modifying text annotations and filling in interactive form fields, and, in conjunction with AllowModifyContents, allows for creating or modifying interactive form fields (including signature fields).

See Also:
Constant Field Values

AllowFormFill

public static final int AllowFormFill
User access permission that allows for filling in existing form fields (including signature fields) even when AllowModifyAnnotations has not been specified.

See Also:
Constant Field Values

AllowAccessibility

public static final int AllowAccessibility
User access permission that allows for extracting text and graphics meant for applications such as providing accessibility to persons with disabilities.

See Also:
Constant Field Values

AllowAssembly

public static final int AllowAssembly
User access permission that allows for assembling the document, including inserting, rotating, or deleting pages and creating bookmarks or thumbnail images, even when AllowModifyContents has not been specified.

See Also:
Constant Field Values

AllowHighResPrint

public static final int AllowHighResPrint
User access permission that allows for printing a document with quality of appearance high enough to be able to reproduce an exact digital copy. When not specified, the document is likely to be printed with a lesser quality of appearance.

See Also:
Constant Field Values
Method Detail

setLevel

public void setLevel(int level)
Specifies encryption key length for this PdfEncryption object.

Parameters:
level - constant specifying the encryption key length for this PdfEncryption object
Since:
1.0
Sample Code
See example.

getOwnerPwd

public String getOwnerPwd()
Returns owner password specified for this PdfEncryption object.

Returns:
owner password specified for the PdfEncryption object
Since:
1.0

setOwnerPwd

public void setOwnerPwd(String ownerPwd)
Specifies owner password for this PdfEncryption object.

Parameters:
ownerPwd - owner password for the PdfEncryption object
Since:
1.0
Sample Code
See example.

getPermissions

public int getPermissions()
Returns user access permissions specified for this PdfEncryption object.

Returns:
constant or combined value of constants representing user access permissions specified for the PdfEncryption object
Since:
1.0

setPermissions

public void setPermissions(int permissions)
Specifies user access permissions for this PdfEncryption object.

Parameters:
permissions - constants or combined value of constant specifying user access permissions for this PdfEncryption object
Since:
1.0
Sample Code
See example.

getUserPwd

public String getUserPwd()
Returns user password specified for this PdfEncryption object.

Returns:
user password specified for the PdfEncryption object
Since:
1.0

setUserPwd

public void setUserPwd(String userPwd)
Specifies user password for this PdfEncryption object.

Parameters:
userPwd - user password for the PdfEncryption object
Since:
1.0
Sample Code
See example.

Gnostice PDFOne
Pro. Ed. v1.41

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2006 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com