Enum Class PermissionFlags

java.lang.Object
java.lang.Enum<PermissionFlags>
com.datalogics.PDFL.PermissionFlags
All Implemented Interfaces:
Serializable, Comparable<PermissionFlags>, Constable

public enum PermissionFlags extends Enum<PermissionFlags>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Overrides 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final PermissionFlags NONE
      The document has no security data.
    • OPEN

      public static final PermissionFlags OPEN
      The user can open and decrypt the document.
    • SECURE

      public static final PermissionFlags SECURE
      The user can change the document's security settings.
    • PRINT

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags EXT
    • FILLAND_SIGN

      public static final PermissionFlags FILLAND_SIGN
      Overrides other Permissions bits. It allows the user to fill in or sign existing form or signature fields.
    • ACCESSIBLE

      public static final PermissionFlags 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

      public static final PermissionFlags DOC_ASSEMBLY
      Overrides various Edit bits and allows the following operations: page insert/delete/rotate and create bookmark and thumbnail.
    • HIGH_PRINT

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags 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

      public static final PermissionFlags ALL
    • SETTABLE

      public static final PermissionFlags SETTABLE
      The OR of all operations that can be set by the user in the security restrictions (Print + Edit + Copy + EditNotes).
    • USER

      public static final PermissionFlags USER
      All permissions.
  • Method Details

    • values

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

      public static PermissionFlags valueOf(String name)
      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 name
      NullPointerException - if the argument is null