Annotate Documents in Java with REST API

RESTful API to build online document & image annotation tools with support for text & image based annotation options. Let's annotate!

Start Free Trial
GroupDocs.Annotation Cloud SDK for Java

GroupDocs.Annotation Cloud SDK for Java


GroupDocs.Annotation Cloud SDK for Java is a handy toolkit for developing business document annotator applications in Java. The solution allows applying annotations, sticky notes, watermark overlays, redactions, text replacements and markups to documents, presentations, emails, spreadsheets, PDF, images other file formats. Annotation SDK works as a wrapper for the Java RESTful APIs and makes application cross-platform compatible. Our Annotation API also works with all popular 3rd party cloud storage solutions.

Previous Next

Advanced Document Annotation REST API Features



Apply/discard visual annotations & text markups


Get information about metadata for annotated document


Data retrieval of annotations for supported file formats


Import/export document annotations as a list


View annotated document in PDF format


Fetch storage link of the stored annotated document


Compatibility for cross-platform document annotations


Support for text redaction in Microsoft PowerPoint


Support to apply annotations to header/footer in Word documents


Work with Document Annotations

GroupDocs.Annotation Cloud API provides a number of ways to deal with annotations. It not only allows retrieving annotations from documents, but also adds annotation to a document and retrieves the resultant document as stream. Following code snippet shows how you can quickly get the PDF version of any document.

Generate PDF of Document Pages - Java

// Get your AppSID and AppKey at (free registration is required).
Configuration configuration = new Configuration(appSID, appKey);
AnnotateApi apiInstance = new AnnotateApi(configuration);

// Create request object.
GetPdfRequest request = new GetPdfRequest();
request.setFilePath("docs"+ File.separator +"document.docx");

// Executing api method.
File response = apiInstance.getPdf(request);

Robust Set of Annotation Tools

GroupDocs.Annotation Cloud SDK for Java REST API, allows you to make use of various types of annotations. The primary types are; graphical annotation and text-based annotations.

Text-based markups can be done thorugh adding text comments to selection, text redaction is supported to hide classified text. You can also highlight text with markups such as underlines and strikethroughs. Sticky notes can be added to rich text.

Graphical annotation can be applied in the form of, adding notes to area highlighted with rectangle (Area Annotation), hide classified part of text or image (Area Redaction), apply notes to a specific point within the document (Point Annotation), arrows dropped to an object (Pointer/Arrow), drawing freehand shapes and lines (Polyline), add text-based watermark overlay (Watermark), and distance meaurement between any two objects in the document (Distance Annotation).

Easy Integration

To integrate GroupDocs.Annotation Cloud SDK into your Java applications, just create an account at GroupDocs.Cloud to get App SID & App Key. No installation is required.

Easy Customization

GroupDocs.Annotation Cloud SDK for Java is open source and has an MIT license. Use it, and even customize it for no charges. Moreover, it is tested and out of the box running for a quick and reliable integration.

Interactive API Explorer

Provide desired parameters to our Swagger based interactive API explorer and try out various features of GroupDocs.Annotation Cloud API for Java in your browser. Please visit Annotation Cloud API explorer to see it in action.

Support and Learning Resources


GroupDocs.Annotation Cloud Product Family also includes SDKs for other popular languages as listed below: