|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.rups.model.Permissions
public class Permissions
This class can tell you more about the permissions that are allowed on the PDF file.
Field Summary | |
---|---|
protected int |
cryptoMode
How was the document encrypted? |
protected boolean |
encrypted
Was the file encrypted? |
protected byte[] |
ownerPassword
Which owner password was provided to open the file? |
protected int |
permissions
What are the document permissions? |
protected byte[] |
userPassword
What is the user password? |
Constructor Summary | |
---|---|
Permissions()
|
Method Summary | |
---|---|
int |
getCryptoMode()
Returns the crypto mode. |
byte[] |
getOwnerPassword()
Returns the owner password of the PDF file (if any). |
int |
getPermissions()
Returns the permissions in the form of an int (each bit is a specific permission) |
byte[] |
getUserPassword()
Returns the user password (if any). |
boolean |
isAllowAssembly()
Tells you if document assembly is allowed. |
boolean |
isAllowCopy(boolean decrypted)
Tells you if copying is allowed. |
boolean |
isAllowDegradedPrinting()
Tells you if degraded printing is allowed. |
boolean |
isAllowFillIn()
Tells you if filling in forms is allowed. |
boolean |
isAllowModifyAnnotations()
Tells you if modifying annotations is allowed |
boolean |
isAllowModifyContents(boolean decrypted)
Tells you if modifying the contents is allowed. |
boolean |
isAllowPrinting()
Tells you if printing is allowed. |
boolean |
isAllowScreenReaders()
Tells you if modifying the layout for screenreaders is allowed. |
boolean |
isEncrypted()
Tells you if the document was encrypted. |
void |
setCryptoMode(int cryptoMode)
Setter for the crypto mode |
void |
setEncrypted(boolean encrypted)
Setter for the encrypted variable. |
void |
setOwnerPassword(byte[] ownerPassword)
Setter for the owner password. |
void |
setPermissions(int permissions)
Setter for the permissions. |
void |
setUserPassword(byte[] userPassword)
Setter for the user password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean encrypted
protected byte[] ownerPassword
protected byte[] userPassword
protected int permissions
protected int cryptoMode
Constructor Detail |
---|
public Permissions()
Method Detail |
---|
public boolean isEncrypted()
public void setEncrypted(boolean encrypted)
encrypted
- set this to true if the document was encryptedpublic byte[] getOwnerPassword()
public void setOwnerPassword(byte[] ownerPassword)
ownerPassword
- the owner passwordpublic byte[] getUserPassword()
public void setUserPassword(byte[] userPassword)
userPassword
- the user password of a PDF filepublic int getPermissions()
public void setPermissions(int permissions)
permissions
- the permissions in the form of an intpublic int getCryptoMode()
public void setCryptoMode(int cryptoMode)
cryptoMode
- the crypto modepublic boolean isAllowPrinting()
public boolean isAllowModifyContents(boolean decrypted)
public boolean isAllowCopy(boolean decrypted)
public boolean isAllowModifyAnnotations()
public boolean isAllowFillIn()
public boolean isAllowScreenReaders()
public boolean isAllowAssembly()
public boolean isAllowDegradedPrinting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |