Add PPTX Files to Java

Download Free Trial

About GroupDocs.Annotation for Java API

GroupDocs.Annotation for Java API is a library that allows you to add annotations to PDF, Word and other documents on Mac, Windows or Ubuntu. GroupDocs.Annotation for Java is a native Java API for managing annotations with comprehensive support for creating, adding, editing, deleting, extracting and exporting annotations from images and various other documents. The full list of supported document formats you could see on this page.

This library allows you to work not only with PPTX document but also with many other types documents such as Word, Excel, PowerPoint, Outlook emails, Visio, Adobe, OpenDocument, OpenOffice, Photoshop, AutoCad and many others.

The GroupDocs.Annotation for Java API allows you to create and add new notes, edit annotations, extract comments, annotations, and remove them from documents. The library supports 13 different annotation types, including Text, Polyline, Area, Underline, Point, Watermark, Arrow, Ellipse, Text Replacement, Distance, Text Field, Resource Redaction in PDF, HTML, Microsoft Word documents, spreadsheets, diagrams, presentations, drawings, images and many other file formats.

The example (please see below) demonstrates working with PPTX document, in this example you could see the main steps of how to work with GroupDocs.Annotation: Setup a license, open a document you want to work with, creating an annotation, adding data objects to set annotation properties according to your requirements and saving the result to the needed place. Also you could have a look more detailed on the supported features on our github page, or in our product documentation.

Steps to Add Annotations to PPTX in Java

GroupDocs.Annotation makes it easy for Java developers to add various annotation types to PPTX files within any Java-based application by implementing a few easy steps.

  • Create Reply objects with comment and date.
  • Create AreaAnnotation object, set area options and add replies.
  • Create Annotator object and add area annotation.
  • Save output file.

System Requirements

GroupDocs.Annotation for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environment: NetBeans, Intellij IDEA, Eclipse etc
  • Java Runtime Environment: Java 7 (1.7) and above
  • Get the latest version of GroupDocs.Annotation for Java from GroupDocs Artifact Repository

Annotation preview and code sample

// Create an instance of Reply class and add comments
Reply firstReply = new Reply();
firstReply.setComment("First comment");

Reply secondReply = new Reply();
secondReply.setComment("Second comment");

List<Reply> replies = new ArrayList<Reply>();

// Create an instance of AreaAnnotation class and set options
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 100, 100));
area.setMessage("This is area annotation");
area.setPenWidth((byte) 3);

// Create an instance of Annotator class
Annotator annotator = new Annotator("input.bmp");

// Add annotation

// Save to file"output.bmp");

Annotation preview image

Live Demos to Add Annotations to Documents and Images

Create and add annotations to PPTX file right now by visiting GroupDocs.Annotation Live Demos website. The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

About PPTX File Format

Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings.

Read More About PPTX File Format

Annotating Other Popular File Formats

Java annotations editor API for documents and image formats. Update annotation properties from some of the popular file formats as stated below.

Add Annotation to PDF

(Adobe Portable Document Format)

Add Annotation to DOC

(Microsoft Word Document)

Add Annotation to DOCM

(Microsoft Word Macro-Enabled Document)

Add Annotation to DOCX

(Microsoft Word Open XML Document)

Add Annotation to DOT

(Microsoft Word Document Template)

Add Annotation to DOTX

(Word Open XML Document Template)

Add Annotation to RTF

(Rich Text Document)

Add Annotation to ODT

(Open Document Text)

Add Annotation to XLS

(Microsoft Excel Binary File Format)

Add Annotation to XLSX

(Microsoft Excel Open XML Spreadsheet)

Add Annotation to XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Add Annotation to XLSB

(Microsoft Excel Binary Worksheet)

Add Annotation to ODS

(Open Document Spreadsheet)

Add Annotation to PPT

(PowerPoint Presentation)

Add Annotation to PPTX

(PowerPoint Open XML Presentation)

Add Annotation to PPSX

(PowerPoint Open XML Slide Show)

Add Annotation to POTM

(Microsoft PowerPoint Template)

Add Annotation to PPTM

(Microsoft PowerPoint Presentation)

Add Annotation to PPS

(Microsoft PowerPoint 97-2003 Slide Show)

Add Annotation to ODP

(OpenDocument Presentation)

Add Annotation to HTML

(HyperText Markup Language)

Add Annotation to TIFF

(Tagged Image File Format)

Add Annotation to PNG

(Portable Network Graphic)

Add Annotation to EML

(E-mail Message)

Add Annotation to MSG

(Microsoft Outlook E-mail Message)

Add Annotation to VSD

(Microsoft Visio 2003-2010 Drawing)

Add Annotation to VSDX

(Microsoft Visio Drawing)

Add Annotation to VSS

(Microsoft Visio 2003-2010 Stencil)

Add Annotation to VST

(Microsoft Visio 2013 Stencil)

Add Annotation to DWG

(Autodesk Design Data Formats)

Add Annotation to DXF

(AutoCAD Drawing Interchange)

Add Annotation to DCM

(Digital Imaging and Communications in Medicine)

Add Annotation to WMF

(Windows Metafile)

Add Annotation to EMF

(Enhanced Metafile Format)

Back to top