Package com.pdftools.pdf
Enum Permission
- java.lang.Object
-
- java.lang.Enum<Permission>
-
- com.pdftools.pdf.Permission
-
- All Implemented Interfaces:
Flag
,java.io.Serializable
,java.lang.Comparable<Permission>
public enum Permission extends java.lang.Enum<Permission> implements Flag
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 Constants Enum Constant Description ANNOTATE
Allow annotations.ASSEMBLE
Allow document assembly.COPY
Allow content copying or extraction.DIGITAL_PRINT
Allow high resolution printing.FILL_FORMS
Allow filling of form fields.MODIFY
Allow changing the document.PRINT
Allow low resolution printing.SUPPORT_DISABILITIES
Allow support for disabilities.
-
Field Summary
Fields Modifier and Type Field Description static java.util.EnumSet<Permission>
ALL
All Permission.static java.util.EnumSet<Permission>
NONE
No permission.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Permission
valueOf(java.lang.String name)
Returns 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 Detail
-
PRINT
public static final Permission PRINT
Allow low resolution printing.
-
MODIFY
public static final Permission MODIFY
Allow changing the document.
-
COPY
public static final Permission COPY
Allow content copying or extraction.
-
ANNOTATE
public static final Permission ANNOTATE
Allow annotations.
-
FILL_FORMS
public static final Permission FILL_FORMS
Allow filling of form fields.
-
SUPPORT_DISABILITIES
public static final Permission SUPPORT_DISABILITIES
Allow support for disabilities.
-
ASSEMBLE
public static final Permission ASSEMBLE
Allow document assembly.
-
DIGITAL_PRINT
public static final Permission DIGITAL_PRINT
Allow high resolution printing.
-
-
Field Detail
-
NONE
public static final java.util.EnumSet<Permission> NONE
No permission.
-
ALL
public static final java.util.EnumSet<Permission> ALL
All Permission.
-
-
Method Detail
-
values
public static Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Permission c : Permission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Permission valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-