Skip navigation
Currently Being Moderated

Using OLE/IAC to provide document password on file open

Apr 4, 2012 4:49 PM

Tags: #password #sdk #api #exception #com #ole #document_security #document_password #notallowederror

I've run into a little problem when extracting text from the documents. Many of the files have document security enabled, which is causing a NotAllowedError exception in COM. The message of the exception is "Security settings preveent access to this property or method. I do have the password to the documents. Is there a way to EITHER provide the password to the file through AVDoc.Open, another method, or to disable document security on the documents, given the password, using the COM API?

  • Currently Being Moderated
    Apr 4, 2012 5:28 PM   in reply to Eldrarak82

    No way to provide the password from IAC/OLE, sorry.

    Mark as:
  • Currently Being Moderated
    Apr 5, 2012 3:52 AM   in reply to Eldrarak82

    No, it is only possible via a custom plugin.

    Mark as:
  • Currently Being Moderated
    Apr 5, 2012 8:12 AM   in reply to Eldrarak82

    The AV/PDDocOpen APIs for opening up documents via plugins provide a way to give them the passwords for opening.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points