The code sample in below examples uses some methods defined in Working with Common Utilities. |
This feature is supported by version 18.12 or greater. |
Using GroupDocs.Metadata for Java API you can also work with password-protected documents of following file formats:
To work with the password-protected Word document, the following steps are needed to be followed:
Following code snippet works with password-protected Word document:
<script src="https://gist.github.com/GroupDocsGists/6f5f8213abebed6b2b91ddf2da9ef2d1.js"></script> |
To work with the password-protected Presentation document, the following steps are needed to be followed:
Following code snippet works with password-protected Presentation document:
<script src="https://gist.github.com/GroupDocsGists/baa008fe587345e9568984233058002f.js"></script> |
To work with the password-protected Excel document, the following steps are needed to be followed:
Following code snippet works with password-protected Excel document:
<script src="https://gist.github.com/GroupDocsGists/b52d2a1b69a25ee703210f4d065025b8.js"></script> |
To work with the password-protected PDF document, the following steps are needed to be followed:
Following code snippet works with password-protected PDF document:
<script src="https://gist.github.com/GroupDocsGists/9b67eba84490bcf6cbcec870e599a997.js"></script> |
This feature is supported by version 19.1 or greater. |
To work with the password-protected OneNote section, the following steps are needed to be followed:
Check if the document is password-protected using MetadataUtility.IsProtected()
Following code snippet works with password-protected OneNote document:
<script src="https://gist.github.com/GroupDocsGists/266470eaa3833166a9e9cf7e3bd3d331.js"></script> |