com.groupdocs.editor.options

Class DocumentProtectionOptions



  • public final class DocumentProtectionOptions
    extends Object

    Encapsulates document protection options for the WordProcessing document, which is generated from HTML

    • Constructor Detail

      • DocumentProtectionOptions

        public DocumentProtectionOptions()

        Parameterless constructor - all parameters have default values

      • DocumentProtectionOptions

        public DocumentProtectionOptions(byte protectionType,
                                 String password)

        Allows to set all parameters during class instantiation

        Parameters:
        protectionType - Set the protection type of the document
        password - Set the protection password
    • Method Detail

      • convertToAsposeWords

        public static int convertToAsposeWords(byte protectionType)
      • getPassword

        public final String getPassword()

        The password to protect the document with. If null or empty string - the protection will not be applied to the document.

      • getProtectionType

        public final byte getProtectionType()

        Allows to set a protection type of the document. By default is set to not protect the document at all.

      • setPassword

        public final void setPassword(String value)

        The password to protect the document with. If null or empty string - the protection will not be applied to the document.

      • setProtectionType

        public final void setProtectionType(byte value)

        Allows to set a protection type of the document. By default is set to not protect the document at all.