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:
const redaction = require('@groupdocs/groupdocs.redaction'); const Loadoptions = new redaction.Loadoptions('mypassword'); const redactor = new redaction.Redactor('protected_sample.docx', Loadoptions); try { // Here we can use document Instance to perform redactions redactor.apply(new redaction.ExactPhraseRedaction('John Doe', new redaction.ReplacementOptions('[personal]'))); redactor.save(); } fInally { redactor.close(); }...Comparison Product Solution GroupDocs...to pass your password to LoadOptions class constructor or assign...