# Load the password-protected documents The page describes how to load the password protected PDF, Word, Excel, PowerPoint documents using GroupDocs.Annotation for Java. [GroupDocs.Annotation](https://products.groupdocs.com/annotation/java) allows you to annotate the password-protected documents. To load a password protected file, follow these steps: 1. Instantiate the [LoadOptions](https://reference.groupdocs.com/java/annotation/com.groupdocs.annotation/Annotator) class. Specify the source document password as a parameter. 2. Instantiate the [Annotator](https://reference.groupdocs.com/java/annotation/com.groupdocs.annotation/Annotator) class. Specify the document path or stream and the the [LoadOptions](https://reference.groupdocs.com/java/annotation/com.groupdocs.annotation/Annotator) object. The following code snippet shows how to load a password protected file: {{< tabs "example1">}} {{< tab "Java" >}} ```java // This example demonstrates annotating documents that are protected with a password. // Create an instance of LoadOptions class and set password LoadOptions loadOptions = new LoadOptions(); loadOptions.setPassword("1234"); // Create an instance of Annotator class Annotator annotator = new Annotator("inputPath", loadOptions); try { // Create an instance of AreaAnnotation class and set options AreaAnnotation area = new AreaAnnotation(); area.setBox(new Rectangle(100, 100, 100, 100)); area.setBackgroundColor(65535); // Add annotation and save to file annotator.add(area); annotator.save("outputPath"); } finally { if (annotator != null) { annotator.dispose(); } } ``` {{< /tab >}} {{< /tabs >}}