Browse our Products

Aspose.Slides for Java 24.4 Release Notes

KeySummaryCategoryRelated Documentation
SLIDESNET-34007Add support for PPTX to XML exportFeature
SLIDESNET-44338Detect whether macros are password protectedFeaturehttps://docs.aspose.com/slides/net/presentation-via-vba/
SLIDESNET-44443Zip64 format support for output documentsFeaturehttps://docs.aspose.com/slides/net/save-presentation/
SLIDESNET-44455Text is not extracted from group shapesEnhancementhttps://docs.aspose.com/slides/net/extract-text-from-presentation/
SLIDESJAVA-39034Use Aspose.Slides for Net 24.4 featuresEnhancement
SLIDESJAVA-35079Support for saving presentaiton to Powerpoint XML Presentation formatFeature
SLIDESJAVA-39339WMF image is missing in the exported PDF from PPTXBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39405Only half of the text is displayed when converting PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39407Incomplete Text Conversion from PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39361Chart is displayed incorrectly when saving PPTX to PPTXBughttps://docs.aspose.com/slides/java/save-presentation/#saving-presentation-to-files
SLIDESJAVA-39362Detect whether macros are password protectedFeaturehttps://docs.aspose.com/slides/java/presentation-via-vba/
SLIDESJAVA-39351Character and Symbol are not clear in PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39389Chart is displayed incorrectly when saving the presentation to PPTXBughttps://docs.aspose.com/slides/java/manage-presentation/
SLIDESJAVA-39431White vertical lines appear when converting PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/

Public API Changes

Introducing a new Modern API

Historically, Aspose Slides has a dependency on java.awt and has in the public API the following classes from there:

This means that all public API members that have the following classes in their signature will be removed in version 24.8:

For more details, see: Modern API

Added the following classes and enums to the public API:

  • IImage - Represents the raster or vector image.
  • ImageFormat - Represents the file format of the image.
  • Images - The static class that contains methods to instantiate IImage.

Methods to be removed and their replacement in Modern API

The following methods and properties are decared as obsolete and will be removed in version 24.8.

Presentation

Method SignatureReplacement Method Signature
public final BufferedImage[] getThumbnails(IRenderingOptions options)public final IImage[] getImages(IRenderingOptions options)
public final BufferedImage[] getThumbnails(IRenderingOptions options, float scaleX, float scaleY)public final IImage[] getImages(IRenderingOptions options, float scaleX, float scaleY)
public final BufferedImage[] getThumbnails(IRenderingOptions options, int[] slides)public final IImage[] getImages(IRenderingOptions options, int[] slides)
public final BufferedImage[] getThumbnails(IRenderingOptions options, int[] slides, float scaleX, float scaleY)public final IImage[] getImages(IRenderingOptions options, int[] slides, float scaleX, float scaleY)
public final BufferedImage[] getThumbnails(IRenderingOptions options, int[] slides, Dimension imageSize)public final IImage[] getImages(IRenderingOptions options, int[] slides, Dimension imageSize)
public final BufferedImage[] getThumbnails(IRenderingOptions options, Dimension imageSize)public final IImage[] getImages(IRenderingOptions options, Dimension imageSize)

Shape

Method SignatureReplacement Method Signature
public final BufferedImage getThumbnail()public final IImage getImage()
public final BufferedImage getThumbnail(int bounds, float scaleX, float scaleY)public final IImage getImage(int bounds, float scaleX, float scaleY)

Slide

Method SignatureReplacement Method Signature
public final BufferedImage getThumbnail()public final IImage getImage()
public final BufferedImage getThumbnail(float scaleX, float scaleY)public final IImage getImage(float scaleX, float scaleY)
public final BufferedImage getThumbnail(IRenderingOptions options)public final IImage getImage(IRenderingOptions options)
public final BufferedImage getThumbnail(IRenderingOptions options, float scaleX, float scaleY)public final IImage getImage(IRenderingOptions options)
public final BufferedImage getThumbnail(IRenderingOptions options, Dimension imageSize)public final IImage getImage(IRenderingOptions options, Dimension imageSize)
public final BufferedImage getThumbnail(ITiffOptions options)public final IImage getImage(ITiffOptions options)
public final BufferedImage getThumbnail(Dimension imageSize)public final IImage getImage(Dimension imageSize)
public final void renderToGraphics(IRenderingOptions options, Graphics2D graphics)Will be deleted completely
public final void renderToGraphics(IRenderingOptions options, Graphics2D graphics, float scaleX, float scaleY)Will be deleted completely
public final void renderToGraphics(IRenderingOptions options, Graphics2D graphics, Dimension renderingSize)Will be deleted completely

Output

Method SignatureReplacement Method Signature
public final IOutputFile add(String path, BufferedImage image)public final IOutputFile add(String path, IImage image)

ImageCollection

Method SignatureReplacement Method Signature
public final IPPImage addImage(BufferedImage image)public final IPPImage addImage(IImage image)

PPImage

Method SignatureReplacement Method Signature
public final BufferedImage getSystemImage()public final IImage getImage()

PatternFormat

Method SignatureReplacement Method Signature
public final BufferedImage getTileImage(Color styleColor)public final IImage getTile(Color styleColor)
public final BufferedImage getTileImage(Color background, Color foreground)public final IImage getTile(Color background, Color foreground)

PatternFormatEffectiveData

Method SignatureReplacement Method Signature
public final java.awt.image.BufferedImage getTileImage(Color background, Color foreground)public final IImage getTileIImage(Color background, Color foreground)

PdfOptions.RasterizeUnsupportedFontStyles property added

Added a new property PdfOptions.RasterizeUnsupportedFontStyles which indicates whether text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.

Example:

Presentation pres = new Presentation();
try {
    PdfOptions pdfOptions = new PdfOptions();
    pdfOptions.setRasterizeUnsupportedFontStyles(true);
    pres.save("pres.pdf", SaveFormat.Pdf, pdfOptions);
} finally {
    if (pres != null) pres.dispose();
}

PptxOptions.Zip64Mode property added - ZIP64 format support

A new property PptxOptions.Zip64Mode specifies whether the ZIP64 format is used for the Presentation document.

Example:

Presentation pres = new Presentation("demo.pptx");
try {
    PptxOptions pptxOptions = new PptxOptions();
    pptxOptions.setZip64Mode(Zip64Mode.Always);
    pres.save("demo-zip64.pptx", SaveFormat.Pptx, pptxOptions);
} finally {
    if (pres != null) pres.dispose();
}

ZoomObject.Image property replaced with ZoomObject.ZoomImage

Instead of ZoomObject.Image, use the ZoomObject.ZoomImage property:

Presentation pres = new Presentation("pres.pptx");
try {
    IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
    IPPImage image = pres.getImages().addImage(Images.fromFile("image.png"));
    zoomFrame.setZoomImage(image);
} finally {
    if (pres != null) pres.dispose();
}