public enum PDFEncryptionOption extends Enum<PDFEncryptionOption> implements RendererConfigOption
Enum Constant and Description |
---|
ENCRYPT_METADATA
PDF encryption parameter: encrypts Metadata, datatype: Boolean or "true"/"false", default: true
|
ENCRYPTION_LENGTH
PDF encryption length parameter: must be a multiple of 8 between 40 and 128,
datatype: int, default: 128
|
NO_ACCESSCONTENT
PDF encryption parameter: Forbids extracting text and graphics, datatype: Boolean
or "true"/"false", default: false
|
NO_ANNOTATIONS
PDF encryption parameter: Forbids annotations, datatype: Boolean or "true"/"false",
default: false
|
NO_ASSEMBLEDOC
PDF encryption parameter: Forbids assembling document, datatype: Boolean or
"true"/"false", default: false
|
NO_COPY_CONTENT
PDF encryption parameter: Forbids copying content, datatype: Boolean or "true"/"false",
default: false
|
NO_EDIT_CONTENT
PDF encryption parameter: Forbids editing content, datatype: Boolean or "true"/"false",
default: false
|
NO_FILLINFORMS
PDF encryption parameter: Forbids filling in existing interactive forms, datatype:
Boolean or "true"/"false", default: false
|
NO_PRINT
PDF encryption parameter: Forbids printing, datatype: Boolean or "true"/"false",
default: false
|
NO_PRINTHQ
PDF encryption parameter: Forbids printing to high quality, datatype: Boolean or
"true"/"false", default: false
|
OWNER_PASSWORD
PDF encryption parameter: owner password, datatype: String, default: ""
|
USER_PASSWORD
PDF encryption parameter: user password, datatype: String, default: ""
|
Modifier and Type | Field and Description |
---|---|
static String |
ENCRYPTION_PARAMS |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue() |
String |
getName()
The name of the option.
|
static PDFEncryptionOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PDFEncryptionOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PDFEncryptionOption ENCRYPTION_LENGTH
public static final PDFEncryptionOption NO_PRINTHQ
public static final PDFEncryptionOption NO_ASSEMBLEDOC
public static final PDFEncryptionOption NO_ACCESSCONTENT
public static final PDFEncryptionOption NO_FILLINFORMS
public static final PDFEncryptionOption NO_ANNOTATIONS
public static final PDFEncryptionOption NO_PRINT
public static final PDFEncryptionOption NO_COPY_CONTENT
public static final PDFEncryptionOption NO_EDIT_CONTENT
public static final PDFEncryptionOption USER_PASSWORD
public static final PDFEncryptionOption OWNER_PASSWORD
public static final PDFEncryptionOption ENCRYPT_METADATA
public static final String ENCRYPTION_PARAMS
public static PDFEncryptionOption[] values()
for (PDFEncryptionOption c : PDFEncryptionOption.values()) System.out.println(c);
public static PDFEncryptionOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
RendererConfigOption
getName
in interface RendererConfigOption
public Object getDefaultValue()
getDefaultValue
in interface RendererConfigOption
Copyright © 2025 Apache Software Foundation. All rights reserved.