Package com.pdftools.pdf
Enum Permission
- All Implemented Interfaces:
Flag,Serializable,Comparable<Permission>
The permissions allowed by a PDF document
-
See
Document.getPermissions()to read the permissions of a PDF document. -
See
OutputOptions.getEncryption()to set the permissions when encrypting a PDF document.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow annotations.Allow document assembly.Allow content copying or extraction.Allow high resolution printing.Allow filling of form fields.Allow changing the document.Allow low resolution printing.Allow support for disabilities. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumSet<Permission> All Permission.static final EnumSet<Permission> No permission. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionReturns the enum constant of this type with the specified name.static Permission[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRINT
Allow low resolution printing.
-
MODIFY
Allow changing the document.
-
COPY
Allow content copying or extraction.
-
ANNOTATE
Allow annotations.
-
FILL_FORMS
Allow filling of form fields.
-
SUPPORT_DISABILITIES
Allow support for disabilities.
-
ASSEMBLE
Allow document assembly.
-
DIGITAL_PRINT
Allow high resolution printing.
-
-
Field Details
-
NONE
No permission.
-
ALL
All Permission.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-