<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-annotation</artifactId>
<version>1.9.0</version>
</dependency>
compile(group: 'com.groupdocs', name: 'groupdocs-annotation', version: '1.9.0')
<dependency org="com.groupdocs" name="groupdocs-annotation" rev="1.9.0">
<artifact name="groupdocs-annotation" ext="jar"/>
</dependency>
libraryDependencies += "com.groupdocs" % "groupdocs-annotation" % "1.9.0"
Document Annotator Java High Code API
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
- Graphic annotations
- Area annotation (Rectangle)
- Arrow annotation (Pointer)
- Distance annotation (Arrows at both line ends)
- Point annotation (Abstract point)
- Polyline annotation (Free-hand drawn line)
- Redaction annotation (Free rectangle with fixed position & black background)
- Text field annotation (Text inside rectangular area)
- Ellipse annotation (Circle-based)
- Text annotations
- Highlight annotation (Text highlighter)
- Replacement annotation (Replace original text with the user provided text)
- Strikeout annotation (Strikes out the selected text)
- Underline annotation (Underline the selected text)
- Text redaction annotation (Same as resource redaction but applicable only to text)
- Link annotation (Web link)
- Watermark annotation (Text watermark)
- Set annotation background color, position, opacity, pen color, style & width.
- Extract annotations from document.
- Add reply to annotations in the form of comments.
- Apply annotations to documents with password protection.
- Ability to annotate documents which are remotely located.
- Filter & save only specific types of annotations while skipping the rest.
- Ability to export only desired page range, specific pages, or only the annotated pages.
- Generate document page preview in
JPG
,PNG
, orBMP
formats. - Maintains the versioning of all the annotations that you add, remove, edit so that you may choose the required version.
- Compare annotations.
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
Version | Release Date |
---|---|
24.6 | June 30, 2024 |
23.10 | October 9, 2023 |
23.8 | August 28, 2023 |
23.6 | June 23, 2023 |
23.4 | April 17, 2023 |
23.2 | April 16, 2023 |
21.7.2 | January 25, 2022 |
21.7.1 | January 25, 2022 |
2.0.0 | January 25, 2022 |
19.2 | January 25, 2022 |
17.10 | January 25, 2022 |
17.10.3 | January 25, 2022 |
1.5.0 | January 25, 2022 |
21.7 | July 21, 2021 |
19.7 | February 19, 2020 |
20.2 | February 13, 2020 |
19.5 | May 30, 2019 |
19.4 | April 15, 2019 |
18.1 | October 16, 2018 |
18.10 | October 16, 2018 |
1.4.0 | April 18, 2018 |
1.6.0 | April 18, 2018 |
1.7.0 | April 18, 2018 |
1.7.1 | April 18, 2018 |
1.8.0 | April 18, 2018 |
1.8.1 | April 18, 2018 |
1.8.2 | April 18, 2018 |
1.9.0 | April 18, 2018 |
17.1.0 | April 18, 2018 |
17.10.1 | April 18, 2018 |
17.10.2 | April 18, 2018 |
17.5.0 | April 18, 2018 |
17.6.0 | April 18, 2018 |
18.4 | April 18, 2018 |
3.1.0 | April 18, 2018 |
File | Classifier | Size |
---|---|---|
groupdocs-annotation-1.9.0-javadoc.jar | javadoc | 779.27 KB |
groupdocs-annotation-1.9.0.jar | 1.40 MB | |
groupdocs-annotation-1.9.0.pom | 473 bytes |
GroupDocs.Annotation Java API Document Annotation Watermarking Document Management PDF Annotation Word Annotation Excel Annotation PowerPoint Annotation Image Annotation OLE Support Metadata Management Cross-platform Compatibility Text Annotations Area Annotations Markup Annotations Distance Measurement Redaction Custom Annotation Appearance Collaborative Document Review Document Security Metadata Preservation Batch Processing High Performance Scalability Cross-platform Printing Annotations Microsoft Word Microsoft Excel Microsoft PowerPoint PDF JPG PNG BMP DWG DXF Visio Adobe Portable Document Format HyperText Markup Language E-mail Message Annotation Tools Java Maven API Integration On-premise API Document Comparison Document Integrity