com.groupdocs.watermark.options

Interfaces

Classes

com.groupdocs.watermark.options

Class LoadOptions

    • Constructor Detail

      • LoadOptions

        public LoadOptions()
        Initializes a new instance of the LoadOptions class.
      • LoadOptions

        public LoadOptions(String password)
        Initializes a new instance of the LoadOptions class with a specified password.
        Parameters:
        password - The password for opening an encrypted content.
    • Method Detail

      • getPassword

        public final String getPassword()
        Gets the password for opening an encrypted document.
        Returns:
        The password for opening an encrypted document.
      • setPassword

        public final void setPassword(String value)
        Sets the password for opening an encrypted document.

        The password be null or empty string. The default value is null. If the content is not encrypted, set this to null or empty string.

        The following example demonstrates how to load a document protected with a password.

        LoadOptions loadOptions = new LoadOptions();
           loadOptions.setPassword("pwd123");
         
           Watermarker watermarker = new Watermarker("D:\\doc.vsdx", loadOptions);
           // ...
           watermarker.close();
         
        Parameters:
        value - The password for opening an encrypted document.