PasswordPermissions
instead.public class PDFPermissions extends PasswordPermissions
Modifier and Type | Field and Description |
---|---|
static int |
DO_NOT_USE_ENCRYPTION_AES_256_R5
Deprecated.
DO NOT USE. This encryption type was deprecated by the PDF specifications, DO NOT USE.
|
static int |
ENCRYPTION_AES_128
Deprecated.
Use
PasswordPermissions.ENCRYPTION_AES_128 instead. |
static int |
ENCRYPTION_AES_256
Deprecated.
Use
PasswordPermissions.ENCRYPTION_AES_256 instead. |
static int |
ENCRYPTION_RC4_128
Deprecated.
Use
PasswordPermissions.ENCRYPTION_RC4_128 instead. |
static int |
ENCRYPTION_RC4_40
Deprecated.
Use
PasswordPermissions.ENCRYPTION_RC4_40 instead. |
Constructor and Description |
---|
PDFPermissions()
Deprecated.
|
PDFPermissions(boolean allperms)
Deprecated.
|
PDFPermissions(int perms,
boolean ownerPasswordEntered)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getPermFlag()
Deprecated.
|
boolean |
hasAllPermissions()
Deprecated.
|
boolean |
isAssembleDocumentAllowed()
Deprecated.
|
boolean |
isChangeDocumentAllowed()
Deprecated.
|
boolean |
isExtractTextGraphicsAllowed()
Deprecated.
|
boolean |
isExtractTextGraphicsForAccessibilityAllowed()
Deprecated.
|
boolean |
isFillFormFieldsAllowed()
Deprecated.
|
boolean |
isModifyAnnotsAllowed()
Deprecated.
|
boolean |
isPrintAllowed()
Deprecated.
|
boolean |
isPrintHighResAllowed()
Deprecated.
|
boolean |
ownerPasswordEntered()
Deprecated.
|
void |
setAssembleDocumentAllowed(boolean allowed)
Deprecated.
|
void |
setChangeDocumentAllowed(boolean allowed)
Deprecated.
|
void |
setExtractTextGraphicsAllowed(boolean allowed)
Deprecated.
|
void |
setExtractTextGraphicsForAccessibilityAllowed(boolean allowed)
Deprecated.
|
void |
setFillFormFieldsAllowed(boolean allowed)
Deprecated.
|
void |
setModifyAnnotsAllowed(boolean allowed)
Deprecated.
|
void |
setPermFlag(int perms)
Deprecated.
|
void |
setPrintAllowed(boolean allowed)
Deprecated.
|
void |
setPrintHighResAllowed(boolean allowed)
Deprecated.
|
public static final int ENCRYPTION_RC4_128
PasswordPermissions.ENCRYPTION_RC4_128
instead.public static final int ENCRYPTION_AES_128
PasswordPermissions.ENCRYPTION_AES_128
instead.public static final int ENCRYPTION_RC4_40
PasswordPermissions.ENCRYPTION_RC4_40
instead.public static final int ENCRYPTION_AES_256
PasswordPermissions.ENCRYPTION_AES_256
instead.public static final int DO_NOT_USE_ENCRYPTION_AES_256_R5
public PDFPermissions()
public PDFPermissions(boolean allperms)
allperms
- flag for all permissionspublic PDFPermissions(int perms, boolean ownerPasswordEntered)
perms
- the permissions integer representing the 12 permissions bits as specified in the PDF documentation.ownerPasswordEntered
- flag indicating wether the owner password was entered when opening the documentpublic int getPermFlag()
getPermFlag
in class PasswordPermissions
public boolean hasAllPermissions()
hasAllPermissions
in class PasswordPermissions
public boolean isAssembleDocumentAllowed()
isAssembleDocumentAllowed
in interface IPDFPermissions
isAssembleDocumentAllowed
in class PasswordPermissions
public boolean isChangeDocumentAllowed()
isChangeDocumentAllowed
in interface IPDFPermissions
isChangeDocumentAllowed
in class PasswordPermissions
public boolean isExtractTextGraphicsAllowed()
isExtractTextGraphicsAllowed
in interface IPDFPermissions
isExtractTextGraphicsAllowed
in class PasswordPermissions
public boolean isExtractTextGraphicsForAccessibilityAllowed()
isExtractTextGraphicsForAccessibilityAllowed
in interface IPDFPermissions
isExtractTextGraphicsForAccessibilityAllowed
in class PasswordPermissions
public boolean isFillFormFieldsAllowed()
isFillFormFieldsAllowed
in interface IPDFPermissions
isFillFormFieldsAllowed
in class PasswordPermissions
public boolean isModifyAnnotsAllowed()
isModifyAnnotsAllowed
in interface IPDFPermissions
isModifyAnnotsAllowed
in class PasswordPermissions
public boolean isPrintAllowed()
isPrintAllowed
in interface IPDFPermissions
isPrintAllowed
in class PasswordPermissions
public boolean isPrintHighResAllowed()
isPrintHighResAllowed
in interface IPDFPermissions
isPrintHighResAllowed
in class PasswordPermissions
public boolean ownerPasswordEntered()
ownerPasswordEntered
in class PasswordPermissions
public void setAssembleDocumentAllowed(boolean allowed)
setAssembleDocumentAllowed
in class PasswordPermissions
allowed
- the permission to assemble the document.setChangeDocumentAllowed(boolean)
public void setChangeDocumentAllowed(boolean allowed)
setChangeDocumentAllowed
in class PasswordPermissions
allowed
- the permission to change the documentpublic void setExtractTextGraphicsAllowed(boolean allowed)
setExtractTextGraphicsAllowed
in class PasswordPermissions
allowed
- the permission to extract text and graphics.public void setExtractTextGraphicsForAccessibilityAllowed(boolean allowed)
setExtractTextGraphicsForAccessibilityAllowed
in class PasswordPermissions
allowed
- the permission to extract text and graphics.isExtractTextGraphicsAllowed()
public void setFillFormFieldsAllowed(boolean allowed)
setFillFormFieldsAllowed
in class PasswordPermissions
allowed
- the permission to fill form fields.setChangeDocumentAllowed(boolean)
public void setModifyAnnotsAllowed(boolean allowed)
setModifyAnnotsAllowed
in class PasswordPermissions
allowed
- the permission to add or modify annotations.public void setPermFlag(int perms)
setPermFlag
in class PasswordPermissions
perms
- the permissions int.public void setPrintAllowed(boolean allowed)
setPrintAllowed
in class PasswordPermissions
allowed
- to print the document.setPrintHighResAllowed(boolean)
public void setPrintHighResAllowed(boolean allowed)
setPrintHighResAllowed
in class PasswordPermissions
allowed
- the permission to print at high resolution