<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-annotation</artifactId>
    <version>1.9.0</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-annotation', version: '1.9.0')
copied!  
<dependency org="com.groupdocs" name="groupdocs-annotation" rev="1.9.0">
    <artifact name="groupdocs-annotation" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-annotation" % "1.9.0"
copied!  

Document Annotator Java High Code API

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

GroupDocs.Annotation for Java is a native Java class library and On-premise API to help you build Java applications that can annotate & watermark documents and files of various file formats from Microsoft Office®, OpenOffice®, Image, Acrobat® & others, without requiring any 3rd party software.

Document Annotation Java On-Premise API Features

Supported Document Annotation File Formats

Microsoft Word®: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF
OpenOffice® Text: ODT
Microsoft Excel®: XLS, XLSX, XLSM, XLSB
OpenOffice® Spreadsheet: ODS
Microsoft PowerPoint®: PPT, PPTX, PPS, PPSX
OpenOffice® Presentation: ODP
Microsoft Visio®: VSD, VSDX, VSDM, VSS, VSSX, VST, VSTM
Raster Image: JPG, JPEG, PNG, BMP, TIFF
AutoCAD®: DXF
AutoDesk®: DWG
Email: EML, EMLX
Web: HTM, HTML
Fixed Layout: PDF (PDF/A-1a,PDF/A-1b,PDF/A-2a)

Annotation Objects

Graphic Annotation: Area, Arrow, Distance, Ellipse, Point, Polyline, Resource Redaction, TextField
Text Annotation: Highlight, Link, Replacement, Strikeout, Reduction, Underline
Watermark: Diagonal, Horizontal

For details and limitations please visit, Supported Document Formats.

System Requirements

  • Microsoft Windows: Windows Desktop & Server (x86, x64), Microsoft Azure
  • macOS
  • Linux
  • Java Versions: J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above (for example Java 10)

GroupDocs.Annotation for Java does not require any external software or third party tool to be installed. Just follow one of the ways as described in Installation and Configuration.

Get Started

GroupDocs hosts all Java APIs at the GroupDocs Repository. You can easily use GroupDocs.Annotation for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installation from GroupDocs Repository using Maven documentation page.

Sample Java code to add Watermark Annotation

String outputPath = Constants.getOutputFilePath("AddWatermarkAnnotation", FilenameUtils.getExtension(Constants.INPUT));
final Annotator annotator = new Annotator(Constants.INPUT);
try {
    Reply reply1 = new Reply();
    reply1.setComment("First comment");
    reply1.setRepliedOn(Calendar.getInstance().getTime());
    Reply reply2 = new Reply();
    reply2.setComment("Second comment");
    reply2.setRepliedOn(Calendar.getInstance().getTime());
    java.util.List < Reply > replies = new ArrayList < Reply > ();
    replies.add(reply1);
    replies.add(reply2);
    WatermarkAnnotation watermark = new WatermarkAnnotation();
    watermark.setAngle((double) 75);
    watermark.setBox(new Rectangle(200, 200, 100, 50));
    watermark.setCreatedOn(Calendar.getInstance().getTime());
    watermark.setText("Watermark");
    watermark.setFontColor(65535);
    watermark.setFontSize((double) 12);
    watermark.setMessage("This is watermark annotation");
    watermark.setOpacity(0.7);
    watermark.setPageNumber(0);
    watermark.setReplies(replies);
    annotator.add(watermark);
    annotator.save(outputPath);
} finally {
    if (annotator != null) {
        annotator.dispose();
    }
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

VersionRelease Date
24.6June 30, 2024
23.10October 9, 2023
23.8August 28, 2023
23.6June 23, 2023
23.4April 17, 2023
23.2April 16, 2023
21.7.2January 25, 2022
21.7.1January 25, 2022
2.0.0January 25, 2022
19.2January 25, 2022
17.10January 25, 2022
17.10.3January 25, 2022
1.5.0January 25, 2022
21.7July 21, 2021
19.7February 19, 2020
20.2February 13, 2020
19.5May 30, 2019
19.4April 15, 2019
18.1October 16, 2018
18.10October 16, 2018
1.4.0April 18, 2018
1.6.0April 18, 2018
1.7.0April 18, 2018
1.7.1April 18, 2018
1.8.0April 18, 2018
1.8.1April 18, 2018
1.8.2April 18, 2018
1.9.0April 18, 2018
17.1.0April 18, 2018
17.10.1April 18, 2018
17.10.2April 18, 2018
17.5.0April 18, 2018
17.6.0April 18, 2018
18.4April 18, 2018
3.1.0April 18, 2018