Flag
public enum Permission extends java.lang.Enum<Permission> implements Flag
Document.getPermissions()
to read the permissions of a PDF document.OutputOptions.getEncryption()
to set the permissions when encrypting a PDF document.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.
|
Modifier and Type | Field | Description |
---|---|---|
static java.util.EnumSet<Permission> |
ALL |
All Permission.
|
static java.util.EnumSet<Permission> |
NONE |
No permission.
|
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.
|
public static final Permission PRINT
public static final Permission MODIFY
public static final Permission COPY
public static final Permission ANNOTATE
public static final Permission FILL_FORMS
public static final Permission SUPPORT_DISABILITIES
public static final Permission ASSEMBLE
public static final Permission DIGITAL_PRINT
public static final java.util.EnumSet<Permission> NONE
public static final java.util.EnumSet<Permission> ALL
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null