Browse our Products

Aspose.Slides for Java 24.7 Release Notes

KeySummaryCategoryRelated Documentation
SLIDESNET-44507Embedding files in exported PDF documentsFeature
SLIDESNET-44556Add Chart placeholder to master or layout slideFeaturehttps://docs.aspose.com/slides/net/slide-layout/
SLIDESNET-44104Deleting OLENative compressed objects from PPTFeaturehttps://docs.aspose.com/slides/net/open-presentation/
SLIDESNET-44521PptCorruptFileException occurs when loading the password-protected presentationEnhancementhttps://docs.aspose.com/slides/net/password-protected-presentation/
SLIDESNET-44506Slide number is counted on the comment pageEnhancementhttps://docs.aspose.com/slides/net/convert-powerpoint-to-pdf/
SLIDESJAVA-39040Use Aspose.Slides for Net 24.7 featuresEnhancement
SLIDESJAVA-39176Right border of chart data label is cropped when converting slide to JPG imageBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-png/
SLIDESJAVA-39469Charts are missing when converting PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39174DataLabel background fill is missing when converting PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39256Deleting OLENative compressed objects from PPTFeaturehttps://docs.aspose.com/slides/java/open-presentation/
SLIDESJAVA-39435Charts are rendered incorrectly when converting from PPT to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39455Converting a paragraph from Notes to HTML throws NullPointerExceptionBughttps://docs.aspose.com/slides/java/manage-paragraph/#export-paragraphs-text-to-html
SLIDESJAVA-39482PPTX to PDF: Text on the bar chart is missingBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-38875Converting PPT to HTML5 throws ArgumentOutOfRangeExceptionBughttps://docs.aspose.com/slides/java/export-to-html5/
SLIDESJAVA-39432Slide number is counted on the comment pageEnhancementhttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/

Public API Changes

ILoadOptions.DeleteEmbeddedBinaryObjects property has been added

A new DeleteEmbeddedBinaryObjects property has been added to the ILoadOptions interface and LoadOptions class. It allows you to remove embedded binary data from a presentation file while loading.

The possible binary data in the presentation:

  • VBA Project
  • OLE Object embedded data
  • ActiveX Control binary data.

This property can be useful for removing malicious binary content. The following code sample shows how to load the presentation and save it without malware content:

LoadOptions loadOptions = new LoadOptions();
loadOptions.setDeleteEmbeddedBinaryObjects(true);

Presentation pres = new Presentation("malware.ppt", loadOptions);
try {
    pres.save("clean.ppt", SaveFormat.Ppt);
} finally {
    if (pres != null) pres.dispose();
}

IPdfOptions.IncludeOleData property has been added

A new IncludeOleData property has been added to the IPdfOptions interface and the PdfOptions class. This property allows you to export files embedded in the presentation to PDF format.

The following example shows how to export a presentation to PDF, including embedded files:

Presentation pres = new Presentation("pres.pptx");
try {
    PdfOptions options = new PdfOptions();
    options.setIncludeOleData(true);

    pres.save("pres.pdf", SaveFormat.Pdf, options);
} finally {
    if (pres != null) pres.dispose();
}

ILayoutPlaceholderManager interface and LayoutPlaceholderManager class have been added

The new interface ILayoutPlaceholderManager represents methods that can be used to add a new placeholder to the Layout slide.

The following types of placeholders can be added:

  • Content
  • Vertical Content
  • Text
  • Vertical Text
  • Picture
  • Chart
  • Table
  • SmartArt
  • Media
  • Online Image

ILayoutSlide.PlaceholderManager property has been added

A new PlaceholderManager property has been added to the ILayoutSlide interface and the LayoutSlide class. It allows access to a placeholder manager of the Layout slide.

The following code sample shows how to add new placeholder shapes to the Layout slide:

Presentation pres = new Presentation();
try {
    // Getting the Blank layout slide
    ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank);

    // Getting the placeholder manager of the layout slide
    ILayoutPlaceholderManager placeholderManager = layout.getPlaceholderManager();

    // Adding different placeholders to the Blank layout slide
    placeholderManager.addContentPlaceholder(10, 10, 300, 200);
    placeholderManager.addVerticalTextPlaceholder(350, 10, 200, 300);
    placeholderManager.addChartPlaceholder(10, 350, 300, 300);
    placeholderManager.addTablePlaceholder(350, 350, 300, 200);

    // Adding the new slide with Blank layout
    pres.getSlides().addEmptySlide(layout);

    pres.save("placeholders.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}