| java.lang.Object | |
| ↳ | com.pspdfkit.document.DocumentSaveOptions |
Configures options for saving a document. Use those when saving a document via save(String, DocumentSaveOptions) or related save methods.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
DocumentSaveOptions(String password, EnumSet<DocumentPermissions> permissions, boolean incremental, PdfVersion pdfVersion)
Advanced options for saving a processed document.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
getPassword()
Returns the password that'll be set on the document if these options are used.
| ||||||||||
| PdfVersion |
getPdfVersion()
Returns the PDF version of the document that'll be saved using these options.
| ||||||||||
| EnumSet<DocumentPermissions> |
getPermissions()
Returns the permissions that'll be set on the document if saved using these options.
| ||||||||||
| boolean |
isIncremental()
Indicates whether the saving is set to be incremental or not.
| ||||||||||
| void |
setApplyRedactions(boolean applyRedactions)
Sets whether saving will apply redactions or not.
| ||||||||||
| void |
setIncremental(boolean incremental)
Sets whether the saving will be incremental or not.
| ||||||||||
| void |
setPassword(String password)
Sets the password to a document saving options.
| ||||||||||
| void |
setPdfVersion(PdfVersion pdfVersion)
Sets the PDF version of the document that'll be saved using these options.
| ||||||||||
| void |
setPermissions(EnumSet<DocumentPermissions> permissions)
Sets the permissions that'll be set on the document if saved using these options.
| ||||||||||
| boolean |
shouldApplyRedactions()
Indicates whether
RedactionAnnotations are applied as part of the save process. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Advanced options for saving a processed document.
| password | Password in the output PDF document. Documents with password set are encrypted. null
for no password. |
|---|---|
| permissions | Permission flags on output document, a set of flags from DocumentPermissions. |
| incremental | If true, PSPDFKit will attempt to only append incremental changes to the document
instead of rewriting it. May not be possible in all cases. |
| pdfVersion | Version of PDF to generate. If null, defaults to the newest one.
|
Returns the password that'll be set on the document if these options are used.
Returns the PDF version of the document that'll be saved using these options.
Returns the permissions that'll be set on the document if saved using these options.
Indicates whether the saving is set to be incremental or not.
true if saving is incremental, false otherwise
Sets whether saving will apply redactions or not.
| applyRedactions | true if redactions should be applied, false otherwise. |
|---|
| InvalidPSPDFKitLicenseException | Exception is thrown if the current license doesn't have the redaction component. |
|---|
Sets whether the saving will be incremental or not.
| incremental | true to make saving incremental, false otherwise.
|
|---|
Sets the password to a document saving options. This password will be set to the document if saved using these options.
| password | Password to be set. |
|---|
Sets the PDF version of the document that'll be saved using these options.
| pdfVersion | PDF version of saved document, null default to the latest PDF version.
|
|---|
Sets the permissions that'll be set on the document if saved using these options.
| permissions | Permissions to be set on the document. |
|---|
Indicates whether RedactionAnnotations are applied as part of the save process.
true if they are applied, false otherwise.