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(); }...Redaction Product Solution GroupDocs...GroupDocs.Redaction Product Family / GroupDocs.Redaction for Node...