<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>17.12.1</version>
    <classifier>jdk16</classifier>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-slides', version: '17.12.1', classifier: 'jdk16')
copied!  
<dependency org="com.aspose" name="aspose-slides" rev="17.12.1">
    <artifact name="aspose-slides" m:classifier="jdk16" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-slides" % "17.12.1"
copied!  

Java PowerPoint API

banner

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

Aspose.Slides a Java PowerPoint API for presentation manipulation and management. It allows developers to read, write, convert and manipulate PowerPoint presentations in Java applications with the ability to manipulate all document elements such as slides, tables, text, charts, shapes, images and SmartArt diagrams and more.

PowerPoint File Manipulation via Java

Checkout the product overview to know all about Aspose.Slides for Java.

  • Load & convert presentations to other formats.
  • Create presentations from scratch.
  • Manipulate all of presentation elements via intuitive object model.
  • Create or embed charts.
  • Create or manipulate shapes.

Read & Write Presentations

Microsoft PowerPoint: PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM
OpenOffice: ODP, OTP

Save Presentations As

Fixed Layout: PDF, PDF/A, XPS Image: JPEG, PNG, BMP, TIFF, GIF, SVG Web: HTML, SWF

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 6.0 (1.6) or above

Get Started

Aspose.Slides Java APIs are hosted at the Aspose Repository. You can easily use Aspose.Slides for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Slides for Java from Maven Repository documentation page.

Convert Presentation to PDF

// instantiate a Presentation object that represents a presentation file
Presentation pres = new Presentation("demo.pptx");
try {
    // save the presentation to PDF with default options
    pres.save("output.pdf", SaveFormat.Pdf);
} finally {
    if (pres != null) pres.dispose();
}

Create Presentation from Scratch

// instantiate Presentation
Presentation pres = new Presentation();
try {
    // get the first slide
    ISlide sld = (ISlide) pres.getSlides().get_Item(0);
    
    // add an AutoShape of Rectangle type
    IAutoShape ashp = sld.getShapes().addAutoShape(ShapeType.Rectangle, 150, 75, 150, 50);
    
    // add ITextFrame to the Rectangle
    ashp.addTextFrame("Hello World");
    
    // change the text color to Black (which is White by default)
    ashp.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0).getPortionFormat().getFillFormat()
            .setFillType(FillType.Solid);
    ashp.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0).getPortionFormat().getFillFormat()
            .getSolidFillColor().setColor(java.awt.Color.BLACK);
    
    // change the line color of the rectangle to White
    ashp.getShapeStyle().getLineColor().setColor(java.awt.Color.WHITE);
    
    // remove any fill formatting in the shape
    ashp.getFillFormat().setFillType(FillType.NoFill);
    
    // save the presentation to disk
    pres.save("output.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}

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

VersionRelease Date
22.11November 23, 2022
22.10October 19, 2022
22.9September 22, 2022
22.8August 18, 2022
22.7July 19, 2022
22.6June 27, 2022
22.5May 19, 2022
22.4April 18, 2022
22.3March 24, 2022
22.2February 16, 2022
22.1January 12, 2022
21.12December 17, 2021
21.11November 25, 2021
21.10October 14, 2021
21.9September 21, 2021
21.8August 17, 2021
21.7July 16, 2021
21.6June 18, 2021
21.5May 19, 2021
21.4April 19, 2021
21.3March 23, 2021
21.2February 19, 2021
21.1January 25, 2021
20.12December 22, 2020
20.11November 23, 2020
20.10October 16, 2020
20.9September 24, 2020
20.8August 25, 2020
20.7July 22, 2020
20.6June 24, 2020
20.5May 25, 2020
20.4April 28, 2020
20.3March 24, 2020
20.2February 20, 2020
20.1January 21, 2020
19.12December 18, 2019
19.11November 26, 2019
19.10October 28, 2019
19.9September 17, 2019
19.8August 29, 2019
19.7July 26, 2019
19.6June 25, 2019
19.5May 30, 2019
19.4April 26, 2019
19.3April 4, 2019
19.2February 28, 2019
19.1January 30, 2019
18.12December 27, 2018
18.11December 1, 2018
18.10October 31, 2018
18.9September 30, 2018
18.8August 29, 2018
18.7July 27, 2018
18.6July 1, 2018
18.5May 30, 2018
18.4May 7, 2018
18.3April 3, 2018
18.2.1March 9, 2018
18.2February 28, 2018
18.1January 31, 2018
17.12.1December 26, 2017
17.12December 16, 2017
17.11November 30, 2017
17.10November 1, 2017
17.10.0November 1, 2017
17.9.1October 12, 2017
17.9October 2, 2017
17.8August 31, 2017
17.7July 31, 2017
17.6July 1, 2017
17.5May 31, 2017
17.4April 28, 2017
17.3April 3, 2017
17.2March 1, 2017
17.1January 31, 2017
16.12.0December 27, 2016
16.11.0November 30, 2016
16.10.0November 4, 2016
16.9.0October 12, 2016
16.8.0September 27, 2016
16.7.0August 23, 2016
16.6.0July 22, 2016
16.5.0June 16, 2016
16.4.0May 17, 2016
16.3.0April 21, 2016
16.2.0March 18, 2016
16.1.0February 4, 2016
15.11.0January 11, 2016