Load password-protected file In order to open password-protected documents, you have to pass your password to LoadOptions class constructor or assign it to its Password property of an instance of LoadOptions class:
LoadOptions loadOptions = New LoadOptions("mypassword"); final Redactor redactor = New Redactor("protected_sample.docx", loadOptions); try { // Here we can use document instance to perform redactions redactor.apply(New ExactPhraseRedaction("John Doe", New ReplacementOptions("[personal]"))); redactor.save(); } finally { redactor.close(); }...Consulting Blog Knowledge Base New Releases Status Websites aspose...class: LoadOptions loadOptions = new LoadOptions ( "mypassword" );...