LoadOptions.Password

Hello,
Some questions about Words.Loading.LoadOptions.Password:

  1. To which formats this field applies?
  2. If I set it to a string and source document is NOT password protected, what happens? Load successfully or exception?
  3. This same field applies to all input formats? ie both to PDF and DOC/DOCX?
    Thanks,

@australian.dev.nerds

The property applicable to formats which supports encrypting: DOC, DOCX, ODT, PDF.

No exception will be thrown if password is specified while loading not encrypted document. Document encryption is detected before document loading and if document is not encrypted, it is just loaded normally, if document is encrypted, Aspose.Words tries decrypting it using the specified passwords

Yes, the same fields applied to all load formats.