Enum Permission

java.lang.Object
java.lang.Enum<Permission>
com.pdftools.pdf.Permission
All Implemented Interfaces:
Flag, Serializable, Comparable<Permission>

public enum Permission extends Enum<Permission> implements Flag

The permissions allowed by a PDF document

  • Enum Constant Details

    • 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 Details

  • Method Details

    • values

      public static Permission[] 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

      public static Permission valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null