Spire.Presentation for Java

Java PowerPoint Library – Create Read Modify Print Convert PowerPoint Documents in Java

  • Overview
  • Features
  • Support
  • What's New
  • Live Demo

A PowerPoint® Compatible Library without Microsoft PowerPoint

Over 1,000,000 Developers Are Already Using Our Libraries
To Create Their Amazing Applications.

Spire.Presentation for Java is a professional PowerPoint API that enables developers to create, read, write, convert and save PowerPoint documents in Java Applications. As an independent Java library, Spire.Presentation doesn't need Microsoft PowerPoint to be installed on system.


A rich set of features can be supported by Spire.Presentation for Java, such as inserting slides, chart, table, shapes, bullets, watermark, hyperlink, digital signatures, audio/video, header/footer, speaker notes, comments, and encrypting/decrypting PPT, paragraph settings, document properties settings, inserting/extracting images, extracting text, setting animation, creating SmartArt etc.


Spire.Presentation for Java supports converting PowerPoint document to images (PNG, JPG, TIFF, SVG), PDF, HTML, XPS and PPTX etc. It supports to convert ODP to PDF, convert images to PowerPoint in high quality.

  • Convert

  • Master

  • Watermark

  • Extract

  • eSign

  • Chart

  • SmartArt

  • Graphic

  • Note

  • Animation

Convert PowerPoint to PDF

Converting PowerPoint to PDF helps you maintain the layout and formatting of your presentation when viewed on different systems or devices.

Create Slide Masters

A slide master controls the design of all the slides based on it. Using a slide master makes it easier to create presentations that look consistent and visually appealing.

Add a Watermark

Watermarks are used to declare confidentiality, copyright, source, or other attributes of the document, or as a decoration to make the document more attractive. Both text watermarks and image watermarks can be added to presentations.

Extract Text and Images

If you only need the text and images of a PowerPoint document regardless of their formatting and layout, you can directly extract them from the document.

Digitally Sign PowerPoint Documents

A digital signature provides assurances about the validity and authenticity of your presentation. Once a PowerPoint document is digitally signed, any changes to the document will invalidate the signature.

Insert Charts

Charts in PowerPoint can help illustrate data, show trends or changes in data over time, and make the whole document more professional and attractive.

Insert a SmartArt

SmartArt is a way to combine text, shapes and colors into an image or illustration. SmartArt graphics let you easily create a visual representation of your information.

Insert Images and Shapes

Adding pictures and shapes can make your presentations more interesting and engaging. And you can customize your images by cropping, reordering, changing colors or adding other formatting and customize shape according to your own color palette, preferences.

Add Speaker Notes

Adding speaker notes to a PowerPoint presentation provides reference material for the speaker when they’re presenting a slideshow, allowing them to stay on track without forgetting the key points to deliver a flawless presentation.

Set Animations on Shapes in PowerPoint

Animation is a great way to emphasize important points, to control the flow of information, and to increase viewer interest in your presentation. You can animate almost every objects in PowerPoint slide to give them visual effects.

JAVA

Standalone Java API

100% independent Java PowerPoint API which
doesn't require Microsoft PowerPoint to be installed on system.

VERSION

  • PPT - PowerPoint Presentation 97-2003
  • PPS - PowerPoint SlideShow 97-2003
  • PPTX - PowerPoint Presentation 2007/2010/2013/2016/2019
  • PPSX - PowerPoint SlideShow 2007, 2010

OPERATION

Powerful Toolset, Multichannel Support

  • Work with PowerPoint Charts

  • Print PowerPoint Presentations

  • Work with SmartArt

  • Images and Shapes

  • Audio and Video

  • Protect Presentation Slides

  • Text and Image Watermark

  • Merge Split PowerPoint Document

  • Comments and Notes

  • Manage PowerPoint Tables

  • Set Animations on Shapes

  • Manage Hyperlink

  • Extract Text and Image

  • Replace Text

CONVERSION

Convert File Documents with High Quality

  • PDF

  • HTML

  • XPS

  • SVG

  • Image

PowerPoint Document

  • PNG

  • BMP

  • JPEG

  • EMF

  • TIFF

MAIN FUNCTION

Only Spire.Presentation for Java, No Microsoft Office Installed

Spire.Presentation for Java is a 100% independent Java PowerPoint library, it doesn't require Microsoft Office or any other 3rd party library to be installed on system.

High Quality PowerPoint File Conversion

Spire.Presentation for Java supports converting PowerPoint document to images (PNG, JPG, TIFF, SVG), PDF, HTML, XPS and PPTX etc. It supports to convert ODP to PDF, convert images to PowerPoint in high quality.

Rich PowerPoint Elements Supported

Spire.Presentation for Java supports to process a variety of PowerPoint elements, such as slide, text, image, shape, table, chart, watermark, animation, header and footer, comment, note, SmartArt, hyperlink, OLE object, audio and video.

Easy Integration

Spire.Presentation for Java can be easily integrated into Java applications.

Commercial Edition $799

Compared with the free version, the commercial edition has no slides limitation and is more comprehensive in processing PowerPoint files.

Free Edition $0

Free version is limited to 10 presentation slides when creating PPT and PPTX. When converting PowerPoint files to PDF, Image or XPS, you can only get the first 10 pages of the generated file.

GET STARTED

Free Trials for All Progress Solutions

Here is a brief summary of Spire.Presentation for Java features.

Support Environment

  • 100% Written in Java
  • Supports 32-bit and 64-bit OS
  • Works on Windows, Linux, Unix and Mac OS
  • No Need to Install Additional Software

Support PowerPoint Version

  • PPT - PowerPoint Presentation 97-2003
  • PPS - PowerPoint SlideShow 97-2003
  • PPTX - PowerPoint Presentation 2007, 2010, 2013, 2016 and 2019
  • PPSX - PowerPoint SlideShow 2007, 2010

Conversion

Protect

Slide

Paragraph and Text

Image and Shape

Table and Chart

Media

SmartArt

Comment and Note

We guarantee one business day Forum questions Reply.

We guarantee one business day E-mail response.

Free Customized service for OEM Users.

Skype name: iceblue.support

Apply for a Free Trial License File.

If you have tried out Spire.Doc and found it useful, please consider sharing your experience with others. By sharing your testimonial with us, you will not only help others to make the right decision but will also to earn rewards from us. Please send your testimonials to sales@e-iceblue.com.

This is the list of changelogs of Spire.Presentation for Java New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Download Spire.Presentation for Java to start a free trial:

Version: 9.10.2

Category ID Description
New feature SPIREPPT-2573 Supports the FindFirstTextAsRange method for finding the first occurrence of text.
Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
String text = "create, read";
PortionEx textRange=ppt.getSlides().get(0).FindFirstTextAsRange(text);
textRange.getFill().setFillType(FillFormatType.SOLID);
textRange.getFill().getSolidColor().setColor(Color.red);
textRange.setFontHeight(28);
textRange.setLatinFont(new TextFont("Arial"));
textRange.isBold(TriState.TRUE);
textRange.isItalic(TriState.TRUE);
textRange.setTextUnderlineType(TextUnderlineType.DOUBLE);
textRange.setTextStrikethroughType(TextStrikethroughType.SINGLE);
ppt.saveToFile(outputFile, FileFormat.PPTX_2016);
ppt.dispose();
Bug SPIREPPT-2614 Fixes the issue that the program threw the NullPointerException exception when loading PPTX documents.
Bug SPIREPPT-2616
SPIREPPT-2617
Fixes the issue that incorrect content occurred when converting PPTX documents to images.

Version: 9.9.2

Category ID Description
New feature SPIREPPT-2602 Supports getting the names of all embedded fonts in a PowerPoint file.
ArrayList embedFonts = ppt.getEmbedFonts();
Bug SPIREPPT-2597 Fixes the issue that the program threw java.lang.ClassCastException when converting a PPTX document to a PPT document.
Bug SPIREPPT-2599 Fixes the issue that the program threw java.lang.ClassCastException when calling table.distributeRows(0,1) method after adding a formula to a table cell.
Bug SPIREPPT-2601 Fixes the issue that the program suspended when loading a PPTX document.

Version: 9.8.3

Category ID Description
New feature SPIREPPT-2579 Provides the ReplaceAndFormatText(String matchedString, String newValue, PortionFormatEx format) method to support setting format when replacing text.
Presentation ppt = new Presentation();
// Load a PowerPoint presentation from the specified file.
ppt.loadFromFile(inputFile);
// Create a new object to store the default text range formatting properties.
PortionFormatEx format = new PortionFormatEx();
// Set the IsBold property of the text range formatting to true, making the text bold.
format.isBold(TriState.TRUE);
// Set the FillType property of the text range fill to Solid, indicating a solid fill color.
format.getFill().setFillType(FillFormatType.SOLID);
// Set the Color property of the solid fill color to red.
format.getFill().getSolidColor().setColor(Color.red);
// Set the FontHeight property of the text range formatting to 25, indicating the font size.
format.setFontHeight(25);
format.isBold(TriState.TRUE);

// Replace all occurrences of the text "Spire.Presentation for .NET" with "Spire.PPT" and apply the specified formatting.
ppt.ReplaceAndFormatText("Spire.Presentation for .NET", "Spire.PPT", format);

// Save the modified presentation to the specified output file in the PPTX format compatible with PowerPoint 2016.
ppt.saveToFile(outputFile, FileFormat.PPTX_2016);
// Dispose of the Presentation object to free up resources
ppt.dispose();
Bug SPIREPPT-2544 Fixes the issue that the content did not fit automatically after changing the page orientation.
Bug SPIREPPT-2562 Fixes the issue that the formulas were incorrect when adding LatexMath.
Bug SPIREPPT-2577 Fixes the issue where Chinese characters in formula were displayed as "x".
Bug SPIREPPT-2589 Fixes the issue that the application threw the exception "java.lang.ClassCastException" when adding formulas in table cells.
Bug SPIREPPT-2593 Fixes the issue that the application threw the exception "OutOfMemory" when loading PowerPoint files.

Version: 9.7.6

Category ID Description
New feature SPIREPPT-2559 Supports adding comments to specified text in PowerPoint.
Presentation ppt = new Presentation();
ISlide slide = ppt.getSlides().get(0);
IAutoShape shape = ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE, new Rectangle2D.Double(100, 250, 350, 200));
ppt.getSlides().get(0).getShapes().get(0).getLine().
getFillFormat().getSolidFillColor().setColor(Color.white);
shape.getFill().setFillType(FillFormatType.SOLID);
shape.getFill().getSolidColor().setColor(Color.GRAY);
ParagraphEx paragraphEx = shape.getTextFrame().getTextRange().getParagraph();
PortionEx ex = new PortionEx("TextTextmdTextText\ttmdTextTextmdText\ttmdTextTextmdtEXT\ttTextmd");
paragraphEx.getTextRanges().append(ex);
ICommentAuthor commentAuthor = ppt.getCommentAuthors().addAuthor("test","12");
paragraphEx.addComment(commentAuthor,slide,shape,ex,"123");
String result = "result.pptx";
ppt.saveToFile(result, FileFormat.PPTX_2013);

Presentation ppt = new Presentation();
ppt.loadFromFile(inputFile);
ISlide slide = ppt.getSlides().get(0);
IAutoShape shape = (IAutoShape) slide.getShapes().get(0);
ParagraphEx paragraphEx = shape.getTextFrame().getTextRange().getParagraph();
PortionEx portionEx = paragraphEx.getTextRanges().get(0);
ICommentAuthor commentAuthor = ppt.getCommentAuthors().addAuthor("test","18");
paragraphEx.addComment(commentAuthor,slide,shape,portionEx,"123456789");
String result = "result.pptx";
ppt.saveToFile(result, FileFormat.PPTX_2013);
Bug SPIREPPT-2550 Fixes the issue that the shape height was incorrect after adding content to the shape.
Bug SPIREPPT-2560 Fixes the issue that the effect of modifying the shape position was incorrect.
Bug SPIREPPT-2561 Fixes the issue that the greater-than and less-than symbols in Latex formulas were parsed incorrectly.

Version: 9.7.4

Category ID Description
Bug SPIREPPT-2513 Fixes the issue that the TextBox margin values obtained were incorrect.
Bug SPIREPPT-2536 Fixes the issue that there was a "repair" prompt when opening a saved PowerPoint file.
Bug SPIREPPT-2538 Fixes the issue of incorrect behavior when setting IAudio.isPlayInBackground(true).
Bug SPIREPPT-2546 Fixes the issue that the application threw an "ArrayIndexOutOfBoundsEException" exception when loading a PowerPoint document.
Bug SPIREPPT-2548 Fixes the issue that the image effects were inconsistent when loading and saving a PowerPoint document.
Bug SPIREPPT-2553 Fixes the issue that the images of the PowerPoint document were lost when saving PPTX to images.

Version: 9.6.0

Category ID Description
Bug SPIREPPT-2487 Fixes the issue that the links were missing when merging PowerPoint documents.
Bug SPIREPPT-2499 Fixes the issue that the chart dynamics were lost after loading and saving PowerPoint documents.
Bug SPIREPPT-2500 Fixes the issue that the program hanged when converting PowerPoint to PDF.
Bug SPIREPPT-2517 Fixes the issue that the application threw "DocumentEditException" when merging PowerPoint documents.
Bug SPIREPPT-2518 Fixes the issue that the fonts retrieved in shapes were incorrect.
Bug SPIREPPT-2519 Fixes the issue that the application threw "NullPointerException" when retrieving chart data sources in PowerPoint documents.
Bug SPIREPPT-2525 Fixes the issue that the application threw "outOfMemoryError" when converting PowerPoint to images.

Version: 9.5.2

Category ID Description
Bug SPIREPPT-2466 Optimizes the time consumption for converting PPTX to PDF.
Bug SPIREPPT-2471 Fixes the issue that the comments were incorrect after merging multiple PPTX files.
Bug SPIREPPT-2486 Fixed the issue that the application threw the "StringIndexOutOfBoundsException" when converting PowerPoint to HTML.
Bug SPIREPPT-2504 Fixes the issue that charts were blurred after converting PowerPoint to images.

Version: 9.4.5

Category ID Description
Bug SPIREPPT-2450 Fixes the issue that the CPU usage reached 100 percent and memory overflowed after the end of the task in the thread pool of converting a large number of documents under multithreading.

Version: 9.3.1

Category ID Description
New feature SPIREPPT-2210 Supports adding math equation in paragraphs.
Presentation ppt = new Presentation();
String latexMathCode="x^{2}+\\sqrt{x^{2}+1=2}";
IAutoShape shape=ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE,new Rectangle2D.Float(30,100,400,200));
shape.getTextFrame().getParagraphs().clear();

ParagraphEx p=new ParagraphEx();
shape.getTextFrame().getParagraphs().append(p);

PortionEx portionEx=new PortionEx("Test");
p.getTextRanges().append(portionEx);
p.appendFromLatexMathCode(latexMathCode);
PortionEx portionEx2=new PortionEx("Hello");
p.getTextRanges().append(portionEx2);
ppt.saveToFile(outputFile, FileFormat.AUTO);
New feature SPIREPPT-2422 Supports getting the display color of a shape.
Presentation ppt = new Presentation();
ppt.loadFromFile("input.pptx");
IAutoShape shape = (IAutoShape)ppt.getSlides().get(0).getShapes().get(0);
System.out.println(shape.getDisplayFill().getFillType().getName());
System.out.println(shape.getDisplayFill().getSolidColor().getColor());
Bug SPIREPPT-2456 Fixes the issue that the application threw "DocumentEditException" when merging documents.

Version: 9.2.8

Category ID Description
Bug SPIREPPT-2440 Fixes the issue that the program threw "NullPointerException" error when loading a PPT document.
Request free customized demo just for you.

Tab 1

Upload

Maximum file size: 1 MB. Files accepted: ppt , pptx.
Click here to browse files.
fileerrors

Convert to

Source file:
filename
Target file type:

Tab 2

Upload

Maximum file size: 1 MB. Files accepted: ppt, pptx.
Click here to browse files.
fileerrors

Convert to

Source file:
filename
Search Text:
Replace Text:
downloads

Tab 3

Add text

Text:
Font:
Font Size:
Color:
downloads

Add image

Image:
Click here to browse files
downloads

Tab 4

Set text watermark

Text:
Font:
Font Size:
Color:
Rotate:
downloads

Set image watermark

Image:
Click here to browse files
downloads

Tab 5

Data

salesPers saleAmt comPct comAmt
Joe25015099
Robert27015099
Michelle31012049
Erich33012049
Dafna360150141
Rob380150135

Option

downloads

If you don't find the function you want, please fill in a form to request a free demo from us. Make sure the demo you want meets the following requirements:

  • It is a small project that implements a particular scenario.
  • It relates to our libraries stored on E-iceblue online store.
  • It costs less than 2 hours for us to complete it.
  • It is not a bug report.
  • It is not a feature request.