Browse our Products
Aspose.Slides for Java 23.7 Release Notes
Key | Summary | Category | Related Documentation |
---|---|---|---|
SLIDESNET-43446 | Convert presentation to markdown | Feature | |
SLIDESNET-37059 | Support for importing HTML table in Aspose.Slide | Feature | https://docs.aspose.com/slides/net/import-presentation/#import-powerpoint-from-html |
SLIDESNET-43669 | Generating exceptions when contents are missing in PDF | Enhancement | https://docs.aspose.com/slides/net/conversion-to-pdf/ |
SLIDESNET-43837 | PPTX to HTML5: Saving images externally | Feature | https://docs.aspose.com/slides/net/export-to-html5/ |
SLIDESNET-42818 | Importing HTML documents with images and tables | Feature | https://docs.aspose.com/slides/net/import-presentation/ |
SLIDESJAVA-39016 | Use Aspose.Slides for Net 23.7 features | Enhancement | |
SLIDESJAVA-39134 | PPTX to HTML5: Saving images externally | Feature | https://docs.aspose.com/slides/java/export-to-html5/ |
SLIDESJAVA-39189 | Background images on pages look cropped when converting PPTX to PDF | Bug | https://docs.aspose.com/slides/java/convert-powerpoint-to-pdf/ |
SLIDESJAVA-39091 | Image is lost when importing HTML to a presentation | Bug | https://docs.aspose.com/slides/java/import-presentation/ |
SLIDESJAVA-36451 | Support for importing HTML table in Aspose.Slide | Feature | https://docs.aspose.com/slides/java/import-presentation/#import-powerpoint-from-html |
SLIDESJAVA-39073 | Position of chart data labels is wrong | Bug | https://docs.aspose.com/slides/java/chart-data-label/ |
SLIDESJAVA-39187 | Chart is missing when converting ODP to PPTX | Bug | https://docs.aspose.com/slides/java/convert-odp-to-pptx/ |
SLIDESJAVA-39251 | License validation is not correct | Bug | https://docs.aspose.com/slides/java/licensing/#applying-a-license |
Public API Changes
Markdown export
The presentation can now be exported in a new format: Markdown. The default export looks like this:
New member of the SaveFormat enum has been added: SaveFormat.Md.
Presentation pres = new Presentation("pres.pptx");
try {
pres.save("pres.md", SaveFormat.Md);
} finally {
if (pres != null) pres.dispose();
}
In this case, the default settings will be used:
- the export type is MarkdownExportType.TextOnly, which means that only text will be exported (pictures and other things will be omitted).
- default markdown specification: Flavor.Default.
Different dialects of markdown exports are supported:
- GitLab
- Github
- CommonMark
- Trello
- XWiki
- StackOverflow …and many others.
A new MarkdownSaveOptions class has been added to allow configure options of the resulting Markdown document.
In order to save the markdown to Github flavor you can use this code:
Presentation pres = new Presentation("pres.pptx");
try {
MarkdownSaveOptions markdownSaveOptions = new MarkdownSaveOptions();
markdownSaveOptions.setFlavor(Flavor.Github);
pres.save("pres.md", SaveFormat.Md, markdownSaveOptions);
} finally {
if (pres != null) pres.dispose();
}
In addition, you can export a presentation with images to markdown. There are two variants of this export:
- Sequential: render all items separately, one by one.
- Visual: render all items, items that are grouped will be rendered together.
Example:
Presentation pres = new Presentation("pres.pptx");
try {
MarkdownSaveOptions markdownSaveOptions = new MarkdownSaveOptions();
markdownSaveOptions.setExportType(MarkdownExportType.Visual);
pres.save("pres.md", SaveFormat.Md, markdownSaveOptions);
} finally {
if (pres != null) pres.dispose();
}
In this case, images will be saved to the current directory of the application (and a relative path will be built for them in the markdown document).
The path and folder name for saving can also be specified via options:
Presentation pres = new Presentation("pres.pptx");
try {
final String outPath = "c:/documents/";
MarkdownSaveOptions markdownSaveOptions = new MarkdownSaveOptions();
markdownSaveOptions.setExportType(MarkdownExportType.Visual);
markdownSaveOptions.setImagesSaveFolderName("md-images");
markdownSaveOptions.setBasePath(outPath);
pres.save(outPath + "pres.md", SaveFormat.Md, markdownSaveOptions);
} finally {
if (pres != null) pres.dispose();
}
HTML5 embedded images
Added new properties for Html5Options:
- EmbedImages
- OutputPath
With them, when saving in Html5, you can save images externally and the HTML document will use relative references to them.
Example:
Presentation pres = new Presentation("pres.pptx");
try {
final String outPath = "c:/documents/";
Html5Options options = new Html5Options();
options.setEmbedImages(false);
options.setOutputPath(outPath);
pres.save(outPath + "pres.html", SaveFormat.Html5, options);
} finally {
if (pres != null) pres.dispose();
}