Browse our Products
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>24.10</version>
<classifier>jdk16</classifier>
</dependency>
compile(group: 'com.aspose', name: 'aspose-slides', version: '24.10', classifier: 'jdk16')
<dependency org="com.aspose" name="aspose-slides" rev="24.10">
<artifact name="aspose-slides" m:classifier="jdk16" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-slides" % "24.10"
Java PowerPoint API
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
Version | Release Date |
---|---|
24.10 | October 14, 2024 |
24.9 | September 25, 2024 |
24.8 | August 14, 2024 |
24.7 | July 18, 2024 |
24.6 | June 18, 2024 |
24.5 | May 21, 2024 |
24.4 | April 18, 2024 |
24.3 | March 19, 2024 |
23.7.1 | February 22, 2024 |
24.2 | February 19, 2024 |
24.1 | January 26, 2024 |
23.12 | December 15, 2023 |
23.11 | November 15, 2023 |
23.10 | October 18, 2023 |
23.6.1 | October 13, 2023 |
23.5.1 | October 13, 2023 |
23.4.1 | October 13, 2023 |
23.3.1 | October 13, 2023 |
23.2.1 | October 13, 2023 |
23.9 | September 25, 2023 |
23.8 | August 23, 2023 |
23.7 | July 20, 2023 |
23.6 | June 22, 2023 |
23.5 | May 24, 2023 |
23.4 | April 20, 2023 |
23.3 | March 22, 2023 |
23.2 | February 20, 2023 |
23.1 | January 26, 2023 |
22.12 | December 16, 2022 |
22.11 | November 23, 2022 |
22.10 | October 19, 2022 |
22.9 | September 22, 2022 |
22.8 | August 18, 2022 |
22.7 | July 19, 2022 |
22.6 | June 27, 2022 |
22.5 | May 19, 2022 |
22.4 | April 18, 2022 |
22.3 | March 24, 2022 |
22.2 | February 16, 2022 |
22.1 | January 12, 2022 |
21.12 | December 17, 2021 |
21.11 | November 25, 2021 |
21.10 | October 14, 2021 |
21.9 | September 21, 2021 |
21.8 | August 17, 2021 |
21.7 | July 16, 2021 |
21.6 | June 18, 2021 |
21.5 | May 19, 2021 |
21.4 | April 19, 2021 |
21.3 | March 23, 2021 |
21.2 | February 19, 2021 |
21.1 | January 25, 2021 |
20.12 | December 22, 2020 |
20.11 | November 23, 2020 |
20.10 | October 16, 2020 |
20.9 | September 24, 2020 |
20.8 | August 25, 2020 |
20.7 | July 22, 2020 |
20.6 | June 24, 2020 |
20.5 | May 25, 2020 |
20.4 | April 28, 2020 |
20.3 | March 24, 2020 |
20.2 | February 20, 2020 |
20.1 | January 21, 2020 |
19.12 | December 18, 2019 |
19.11 | November 26, 2019 |
19.10 | October 28, 2019 |
19.9 | September 17, 2019 |
19.8 | August 29, 2019 |
19.7 | July 26, 2019 |
19.6 | June 25, 2019 |
19.5 | May 30, 2019 |
19.4 | April 26, 2019 |
19.3 | April 4, 2019 |
19.2 | February 28, 2019 |
19.1 | January 30, 2019 |
18.12 | December 27, 2018 |
18.11 | December 1, 2018 |
18.10 | October 31, 2018 |
18.9 | September 30, 2018 |
18.8 | August 29, 2018 |
18.7 | July 27, 2018 |
18.6 | July 1, 2018 |
18.5 | May 30, 2018 |
18.4 | May 7, 2018 |
18.3 | April 3, 2018 |
18.2.1 | March 9, 2018 |
18.2 | February 28, 2018 |
18.1 | January 31, 2018 |
17.12.1 | December 26, 2017 |
17.12 | December 16, 2017 |
17.11 | November 30, 2017 |
17.10 | November 1, 2017 |
17.10.0 | November 1, 2017 |
17.9.1 | October 12, 2017 |
17.9 | October 2, 2017 |
17.8 | August 31, 2017 |
17.7 | July 31, 2017 |
17.6 | July 1, 2017 |
17.5 | May 31, 2017 |
17.4 | April 28, 2017 |
17.3 | April 3, 2017 |
17.2 | March 1, 2017 |
17.1 | January 31, 2017 |
16.12.0 | December 27, 2016 |
16.11.0 | November 30, 2016 |
16.10.0 | November 4, 2016 |
16.9.0 | October 12, 2016 |
16.8.0 | September 27, 2016 |
16.7.0 | August 23, 2016 |
16.6.0 | July 22, 2016 |
16.5.0 | June 16, 2016 |
16.4.0 | May 17, 2016 |
16.3.0 | April 21, 2016 |
16.2.0 | March 18, 2016 |
16.1.0 | February 4, 2016 |
15.11.0 | January 11, 2016 |
Aspose Total Aspose Slides Aspose Java API presentation java library presentation java class Maven PPT POT PPS PPTX POTX PPSX PPTM PPSM POTM OTP ODP TIFF PDF XPS JPEG PNG GIF BMP SVG HTML SWF PowerPoint chart shape geometry polyline animation autoshape Windows Linux Mac J2SE JDK Slide presentation merge import convert conversion transition master slide clone slide compare slide OLE SmartArt zoom text table tag custom data math equation security watermak presentation comment presentation note 3d rotation 3d depth 3d gradient 3d text WordArt VBA Macros