This example demonstrates how to load a password-protected document.
advanced_usage.loading_files.LoadPasswordProtectedDocument
// Specify the password LoadOptions loadOptions = new LoadOptions(); loadOptions.setPassword("123"); // Constants.ProtectedDocx is an absolute or relative path to your document. Ex: @"C:\Docs\source.docx" try (Metadata metadata = new Metadata(Constants.ProtectedDocx, loadOptions)) { // Extract, edit or remove metadata here } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:... You are welcome to view and edit metadata of PDF, DOC...