Browse our Products

Aspose.Slides for Java 26.5 Release Notes

KeySummaryCategoryRelated Documentation
SLIDESNET-44630Implement transition behavior between slides with animation in HTML5Enhancement
SLIDESNET-44997Latest versions are slower during PPTX-to-HTML5 conversionsEnhancement
SLIDESNET-45344Support importing Excel cell ranges as native PowerPoint tables via ExcelWorkbookImporterFeaturehttps://docs.aspose.com/slides/net/excel-integration/
SLIDESJAVA-39591Use Aspose.Slides for Net 26.5 featuresEnhancement
SLIDESJAVA-39499Implement transition behavior between slides with animation in HTML5Enhancementhttps://docs.aspose.com/slides/java/convert-powerpoint-to-html/
SLIDESJAVA-39783Beveled image color appears washed out when converting PPTX to PDFBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39805The legend color icon is not properly aligned after XLSX-to-PDF-to-PPTX conversionBughttps://docs.aspose.com/slides/java/import-presentation/
SLIDESJAVA-39811Yellow boxes appear when saving a slide as an imageBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-png/
SLIDESJAVA-39812Text shadow is displayed incorrectly when converting a slide to an imageBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-png/
SLIDESJAVA-39816Regression: Rendering a rotated image in PPTX to PDF causes the greyed-out centre on imageBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39817PPTX to PDF - chart axis labels clippedBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/
SLIDESJAVA-39804Table text becomes vertically misaligned after XLSX-to-PDF-to-PPTX conversionBughttps://docs.aspose.com/slides/java/import-presentation/
SLIDESJAVA-39820Superscript is displayed incorrectly when converting PPTX to JPGBughttps://docs.aspose.com/slides/java/convert-powerpoint-to-jpg/

⚠ IMPORTANT DEPRECATION NOTICE

Starting with version 26.10, support for JDK 1.6 and JDK 1.7 will be completely discontinued.

What is changing:

  • The minimum supported Java version will be JDK 1.8 (Java 8) or higher.
  • JDK 1.6 and JDK 1.7 will no longer be compatible with the product.

Recommended actions:

Please plan to migrate your environments and deployment scripts to JDK 1.8 or higher to avoid failures when upgrading to version 26.10.

The current version (up to 26.9 inclusive) continues to work with JDK 1.6 and 1.7, but we strongly recommend starting the migration process now.

Public API Changes

Support for Importing Excel Cell Ranges as Native Tables into Presentations

The new addTableFromWorkbook methods have been added to the ExcelWorkbookImporter class. These methods allows you to import the table from a workbook by its range and worksheet name.

/**
 * <p>
 * Retrieves a table from the specified Excel workbook and adds it to the end of the given shape collection at the specified coordinates.
 * </p>
 * @return The table that was added to the shape collection.
 * @exception ArgumentException 
 * Thrown when any required parameter is null or empty, or when the specified worksheet or cell range is invalid.
 * @exception InvalidOperationException Thrown when the input data is in an unsupported format.
 * @param shapes The shape collection to which the table will be added.
 * @param x The X coordinate for positioning the table.
 * @param y The Y coordinate for positioning the table.
 * @param workbook The Excel workbook.
 * @param worksheetName The name of the worksheet that contains the table.
 * @param cellRange The cell range that defines the table (for example, "A1:D10").
 */
public static ITable addTableFromWorkbook(IShapeCollection shapes, float x, float y, IExcelDataWorkbook workbook,
	String worksheetName, String cellRange)

/**
 * <p>
 * Retrieves a table from the specified Excel workbook file and adds it to the end of the given shape collection at the specified coordinates.
 * </p>
 * @return The table that was added to the shape collection.
 * @exception ArgumentException 
 * Thrown when any required parameter is null or empty, or when the specified worksheet or cell range is invalid.
 * @exception InvalidOperationException Thrown when the input data is in an unsupported format.
 * @param shapes The shape collection to which the table will be added.
 * @param x The X coordinate for positioning the table.
 * @param y The Y coordinate for positioning the table.
 * @param workbookStream A stream containing the workbook data.
 * @param worksheetName The name of the worksheet that contains the table.
 * @param cellRange The cell range that defines the table (for example, "A1:D10").
 */
public static ITable addTableFromWorkbook(IShapeCollection shapes, float x, float y, InputStream workbookStream,
	String worksheetName, String cellRange)

/**
 * <p>
 * Retrieves a table from the specified Excel workbook file and adds it to the end of the given shape collection at the specified coordinates.
 * </p>
 * @return The table that was added to the shape collection.
 * @exception ArgumentException 
 * Thrown when any required parameter is null or empty, or when the specified worksheet or cell range is invalid.
 * @exception IOException Thrown when an I/O error occurs while accessing the workbook file.
 * @exception InvalidOperationException Thrown when the input data is in an unsupported format.
 * @param shapes The shape collection to which the table will be added.
 * @param x The X coordinate for positioning the table.
 * @param y The Y coordinate for positioning the table.
 * @param workbookPath The path to the Excel workbook file.
 * @param worksheetName The name of the worksheet that contains the table.
 * @param cellRange The cell range that defines the table (for example, "A1:D10").
 */
public static ITable addTableFromWorkbook(IShapeCollection shapes, float x, float y, String workbookPath,
	String worksheetName, String cellRange)

Usage examples

This code sample shows how to import the table from an Excel workbook by its range and worksheet name:

IExcelDataWorkbook workbook = new ExcelDataWorkbook("excelfile.xlsx");
Presentation pres = new Presentation();
try {
    ExcelWorkbookImporter.addTableFromWorkbook(pres.getSlides().get_Item(0).getShapes(), 10, 10, workbook, "worksheet name", "A1:D10");
    pres.save("result.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}

The following sample code shows how to import the table from a workbook file by its range and worksheet name:

Presentation pres = new Presentation();
try {
    ExcelWorkbookImporter.addTableFromWorkbook(pres.getSlides().get_Item(0).getShapes(), 10, 10, "excelfile.xlsx", "worksheet name", "A1:D10");
    pres.save("result.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}

The following code demonstrates how to import the table from a workbook stream by its range and worksheet name:

FileInputStream fStream = new FileInputStream("excelfile.xlsx");
Presentation pres = new Presentation();
try {
    ExcelWorkbookImporter.addTableFromWorkbook(pres.getSlides().get_Item(0).getShapes(), 10, 10, fStream, "worksheet name", "A1:D10");
    pres.save("result.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}