Package | Description |
---|---|
com.aspose.pdf |
The
com.aspose.pdf is a root package for all classes of Aspose.PDF for Java library
which are either directly in it like Document or indirectly through several
subpackages. |
com.aspose.pdf.facades |
The
com.aspose.pdf.facades package provides classes originally came from
Aspose.Pdf.Kit. |
Modifier and Type | Method and Description |
---|---|
void |
Document.encrypt(String userPassword,
String ownerPassword,
DocumentPrivilege privileges,
int cryptoAlgorithm,
boolean usePdf20)
Encrypts the document.
|
void |
IDocument.encrypt(String userPassword,
String ownerPassword,
DocumentPrivilege privileges,
int cryptoAlgorithm,
boolean usePdf20)
Encrypts the document.
|
Modifier and Type | Method and Description |
---|---|
static DocumentPrivilege |
DocumentPrivilege.getAllowAll()
All allowed.
|
static DocumentPrivilege |
DocumentPrivilege.getAssembly()
Allows assemblying file.
|
static DocumentPrivilege |
DocumentPrivilege.getCopy()
Allows copying file.
|
static DocumentPrivilege |
DocumentPrivilege.getDegradedPrinting()
Allows degraded printing.
|
DocumentPrivilege |
PdfFileInfo.getDocumentPrivilege()
Gets the PDF document privilege settings.
|
static DocumentPrivilege |
DocumentPrivilege.getFillIn()
Allows filling forms in file.
|
static DocumentPrivilege |
DocumentPrivilege.getForbidAll()
All Forbidded.
|
static DocumentPrivilege |
DocumentPrivilege.getModifyAnnotations()
Allows modifying annotations of file.
|
static DocumentPrivilege |
DocumentPrivilege.getModifyContents()
Allows modifying file.
|
static DocumentPrivilege |
DocumentPrivilege.getPrint()
Allows printing file.
|
static DocumentPrivilege |
DocumentPrivilege.getScreenReaders()
Allows to reader on screen only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PdfFileSecurity.changePassword(String ownerPassword,
String newUserPassword,
String newOwnerPassword,
DocumentPrivilege privilege,
int keySize)
Changes the user password and password by owner password, allows to reset Pdf documnent
security.
|
boolean |
PdfFileSecurity.changePassword(String ownerPassword,
String newUserPassword,
String newOwnerPassword,
DocumentPrivilege privilege,
int keySize,
int cipher)
Changes the user password and password by owner password, allows to reset Pdf documnent
security.
|
boolean |
PdfFileSecurity.encryptFile(String userPassword,
String ownerPassword,
DocumentPrivilege privilege,
int keySize)
Encrypts Pdf file with userpassword and ownerpassword and sets the document's privileges to
access.
|
boolean |
PdfFileSecurity.encryptFile(String userPassword,
String ownerPassword,
DocumentPrivilege privilege,
int keySize,
int cipher)
Encrypts Pdf file with userpassword and ownerpassword and sets the document's privileges to
access.
|
boolean |
PdfFileSecurity.setPrivilege(DocumentPrivilege privilege)
Sets Pdf file security with empty user/owner passwords.
|
boolean |
PdfFileSecurity.setPrivilege(String userPassword,
String ownerPassword,
DocumentPrivilege privilege)
Sets Pdf file security with original password.
|