Browse our Products

Aspose.Slides for Java 20.1 Release Notes

SLIDESNET-41387Changing default font when saving presentationFeature
SLIDESNET-41372Descriptive exception message when opening password-protected ODP/OTP presentationsEnhancement
SLIDESNET-41601Support of SHA1/1K checksum type for ODP/OTP presentationsEnhancement
SLIDESNET-41605Support of SHA1 key generation algorithm for ODP/OTP presentationsEnhancement
SLIDESJAVA-37570Aspose.Slides is FIPS 186-4 compliantEnhancement
SLIDESJAVA-37848ODP to PNG file not properly convertedBug
SLIDESJAVA-37827Thumbnails are not properly generatedBug
SLIDESJAVA-38013Replacing Date Fields issueBug
SLIDESJAVA-37852Spacing between the words is not preserved properly on saving PPTXBug
SLIDESJAVA-37854Shape disappears when converting ODP to PPTXBug
SLIDESJAVA-37855Missing shape border when converting from ODP to PPTXBug
SLIDESJAVA-37837“Specified argument was out of the range of valid values” exception has been thrown on converting slides to PDFBug
SLIDESJAVA-37838“Position is out of range!” exception has been thrown on conversion to PDFBug
SLIDESJAVA-37839“Referenced character was not allowed in XML” exception has been thrown on conversion to PDFBug
SLIDESJAVA-37853Font shadow not preserved when converting ODP to PPTXBug
SLIDESJAVA-37856Picture borders disappear and picture positioning is mangled when converting from ODP to PPTXBug
SLIDESJAVA-37876Unable to read animation playback time in PPTBug
SLIDESJAVA-37862Bullet Points not preserved when converting ODP to PPTXBug
SLIDESJAVA-37998ODP to PPTX - Circles not preservedBug
SLIDESJAVA-38005Exception: RasterFormatException on converting PPTX to PDFBug
SLIDESJAVA-37845PPTX not properly converted to PDFBug
SLIDESJAVA-35835Shape gradient colors changed after savingBug

Public API Changes

ISaveOptions.setDefaultRegularFont and ISaveOptions.getDefaultRegularFont methods have been added

A new methods setDefaultRegularFont() and getDefaultRegularFont() have been added to ISaveOptions interface and SaveOptions abstract class. It allows to get or set the default font used instead of all missing fonts during saving presentations to different formats without reloading the presentations with different LoadOptions.

The code snippet below demonstrates saving presentation to HTML and PDF with different default regular font.

Presentation pres = new Presentation("SomePresentation.pptx");
    HtmlOptions htmlOpts = new HtmlOptions();
    htmlOpts.setDefaultRegularFont("Arial Black");"SomePresentation-out-ArialBlack.html", SaveFormat.Html, htmlOpts);
    htmlOpts.setDefaultRegularFont("Lucida Console");"Somepresentation-out-LucidaConsole.html", SaveFormat.Html, htmlOpts);
    PdfOptions pdfOpts = new PdfOptions();
    pdfOpts.setDefaultRegularFont("Arial Black");"SomePresentation-out-ArialBlack.pdf", SaveFormat.Pdf, pdfOpts);
} finally {
    if (pres != null) pres.dispose();