|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.crionics.jpdf.encryption.Permissions
public class Permissions
This class allow you to specify the permissions to apply to a document when encrypted and/or recover the permissions of an encrypted document. Note 1: Due to the evolution of the Permissions implementations in the PDF Specification, some of the attributes set in this object may be changed during the encrytion process. Please read carefully the description of each methodes in this class, where this effect is described when relevant.
| Field Summary | |
|---|---|
static int |
QUALITY_HIGH
|
static int |
QUALITY_LOW
|
| Constructor Summary | |
|---|---|
Permissions()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
boolean |
getCanAssemble()
Returns the Assembly permissions. |
boolean |
getCanExtract()
Returns the copy/extraction of text and Graphics permissions. |
boolean |
getCanExtractForScreenReaders()
Returns the copy/extraction of text and Graphics permissions in support of accessibility to disabled users. |
boolean |
getCanFillFormFields()
Returns the Form Fields filling (and signing for Signature) permissions. |
boolean |
getCanModify()
Returns the modifications permissions for operations other than those controlled by getCanModifyAnnotation(),
getCanFillFormFields()and getCanAssemble() |
boolean |
getCanModifyAnnotation()
Returns the addition/modification of Text Annotations permissions. |
boolean |
getCanModifyFormFields()
Returns the addition/modification of From Fields (and Signature) permissions. |
boolean |
getCanPrint()
Returns the printout permissions. |
int |
getPrintQuality()
Returns the printout Quality of this document. |
int |
hashCode()
|
boolean |
isAllowingAll()
Returns true if all the permissions are allowed, false otherwise. |
void |
setAllowAll()
Sets all the permissions in the most open way. |
void |
setCanAssemble(boolean flag)
Sets the Assembly Permission. |
void |
setCanExtract(boolean flag)
Sets the copy/extraction of text and Graphics permissions. |
void |
setCanExtractForScreenReaders(boolean flag)
Sets the copy/extraction of text and Graphics permissions in support of accessibility to disabled users. |
void |
setCanFillFormFields(boolean flag)
Sets the Form Fields filling (and signing for Signature) permissions. |
void |
setCanModify(boolean flag)
Sets the modifications permissions for operations other than those controlled by setCanModifyAnnotation(boolean),
setCanFillFormFields(boolean)and
setCanAssemble(boolean). |
void |
setCanModifyAnnotation(boolean flag)
Sets the addition/modification of Text Annotations permissions. |
void |
setCanPrint(boolean flag)
Sets the printout permissions. |
void |
setDenyAll()
Sets all the permissions in the most restrictive way. |
void |
setPrintQuality(int value)
Sets the printout Quality of this document. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int QUALITY_HIGH
public static final int QUALITY_LOW
| Constructor Detail |
|---|
public Permissions()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean getCanAssemble()
public boolean getCanExtract()
public boolean getCanExtractForScreenReaders()
public boolean getCanFillFormFields()
public boolean getCanModify()
getCanModifyAnnotation(),
getCanFillFormFields()and getCanAssemble()
public boolean getCanModifyAnnotation()
public boolean getCanModifyFormFields()
getCanModify()& getCanModifyAnnotation().
public boolean getCanPrint()
public int getPrintQuality()
getCanPrint() returns true.
QUALITY_LOWor QUALITY_HIGH.public int hashCode()
hashCode in class java.lang.Objectpublic boolean isAllowingAll()
public void setAllowAll()
public void setCanAssemble(boolean flag)
setCanModify(boolean). Default
Value: true
flag - true to allow it, false otherwise.public void setCanExtract(boolean flag)
setCanExtractForScreenReaders(boolean). Default Value: true
flag - true to allow it, false otherwise.public void setCanExtractForScreenReaders(boolean flag)
setCanExtract(boolean). Default Value: true
flag - true to allow it, false otherwise.public void setCanFillFormFields(boolean flag)
setCanModifyAnnotation(boolean).
Default Value: true
flag - true to allow it, false otherwise.public void setCanModify(boolean flag)
setCanModifyAnnotation(boolean),
setCanFillFormFields(boolean)and
setCanAssemble(boolean). NOTE 1: setting this attribute to true
along the attribute defined by setCanModifyAnnotation(boolean)will
allow the addition/modification of From Fields (and Signature). NOTE 2:
If the document is encrypted with a 40 bit key length or in a 1.3 PDF
version compliant (acrobat 3.0 or later), this attribute will overwrite
the value of setCanAssemble(boolean). Default Value: true
flag - true to allow it, false otherwise.public void setCanModifyAnnotation(boolean flag)
setCanModify(boolean)will allow the addition/modification of
From Fields (and Signature). Default Value: true
flag - true to allow it, false otherwise.public void setCanPrint(boolean flag)
flag - true to allow it, false otherwise.public void setDenyAll()
public void setPrintQuality(int value)
setCanPrint(boolean) set to true. NOTE 2: If the
document is encrypted with a 40 bit key length or in a 1.3 PDF version
compliant (acrobat 3.0 or later), this attribute will overwrite the value
of QUALITY_HIGH. Default Value: QUALITY_HIGH
value - QUALITY_LOWfor a 150 dpi impression or
QUALITY_HIGHfor a maximum quality
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||