com.groupdocs.viewer.options

Class Security



  • public class Security
    extends Object

    Provides PDF document security options.

    • Constructor Detail

      • Security

        public Security()

        Initializes new instance of Security class.

    • Method Detail

      • getDocumentOpenPassword

        public final String getDocumentOpenPassword()

        The password required to open the PDF document.

      • getPermissions

        public final int getPermissions()

        The PDF document permissions such as printing, modification and data extraction.

        Returns:
        The PDF document permissions such as printing, modification and data extraction.
      • getPermissionsPassword

        public final String getPermissionsPassword()

        The password required to change permission settings; Using a permissions password you can restrict printing, modification and data extraction.

      • setDocumentOpenPassword

        public final void setDocumentOpenPassword(String value)

        The password required to open the PDF document.

      • setPermissions

        public final void setPermissions(int value)

        The PDF document permissions such as printing, modification and data extraction.

        Parameters:
        value - The PDF document permissions such as printing, modification and data extraction.
      • setPermissionsPassword

        public final void setPermissionsPassword(String value)

        The password required to change permission settings; Using a permissions password you can restrict printing, modification and data extraction.