Package com.datalogics.PDFL
Enum Class PermissionFlags
- All Implemented Interfaces:
Serializable,Comparable<PermissionFlags>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOverrides Copy to enable the Accessibility API.The user can copy information from the document to the clipboard.Overrides various Edit bits and allows the following operations: page insert/delete/rotate and create bookmark and thumbnail.The user can edit the document more than adding or modifying text notes (see also EditNotes).The user can add, modify, and delete text notes (see also Edit).Overrides other Permissions bits.This should be set if the user can spawn template pages.This should be set if the user can submit forms outside of the browser.This bit is a supplement to Print.The document has no security data.The user can open and decrypt the document.The user is permitted to perform all operations, regardless of the permissions specified by the document.The user can print the document.The user can perform a Save As....The user can change the document's security settings.The OR of all operations that can be set by the user in the security restrictions (Print + Edit + Copy + EditNotes).All permissions. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionFlagsReturns the enum constant of this class with the specified name.static PermissionFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
The document has no security data. -
OPEN
The user can open and decrypt the document. -
SECURE
The user can change the document's security settings. -
PRINT
The user can print the document. Page Setup access is unaffected by this permission, since that affects PDF Viewer's preferences - not the document's. In the Document Security dialog, this corresponds to the Printing entry. -
EDIT
The user can edit the document more than adding or modifying text notes (see also EditNotes). In the Document Security dialog, this corresponds to the Changing the Document entry. -
COPY
The user can copy information from the document to the clipboard. In the document restrictions, this corresponds to the Content Copying or Extraction entry. -
EDIT_NOTES
The user can add, modify, and delete text notes (see also Edit). In the document restrictions, this corresponds to the Authoring Comments and Form Fields entry. -
SAVE_AS
The user can perform a Save As.... If both Edit and EditNotes are disallowed, Save will be disabled but Save As... will be enabled. The Save As... menu item is not necessarily disabled even if the user is not permitted to perform a Save As.... -
EXT
-
FILLAND_SIGN
Overrides other Permissions bits. It allows the user to fill in or sign existing form or signature fields. -
ACCESSIBLE
Overrides Copy to enable the Accessibility API. If a document is saved in Rev2 format (Acrobat 4.0 compatible), only the Copy bit is checked to determine the Accessibility API state. -
DOC_ASSEMBLY
Overrides various Edit bits and allows the following operations: page insert/delete/rotate and create bookmark and thumbnail. -
HIGH_PRINT
This bit is a supplement to Print. If it is clear (disabled) only low quality printing (Print As Image) is allowed. On UNIX platforms where Print As Image doesn't exist, printing is disabled. -
OWNER
The user is permitted to perform all operations, regardless of the permissions specified by the document. Unless this permission is set, the document's permissions will be reset to those in the document after a full save. -
FORM_SUBMIT
This should be set if the user can submit forms outside of the browser. This bit is a supplement to FillandSign. -
FORM_SPAWN_TEMPL
This should be set if the user can spawn template pages. This bit will allow page template spawning even if Edit and EditNotes are clear. -
ALL
-
SETTABLE
The OR of all operations that can be set by the user in the security restrictions (Print + Edit + Copy + EditNotes). -
USER
All permissions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-