Aspose.Slides for Python via .NET 24.4 brings various new presentation processing capabilities to Linux developers.
Work with a Modern API
You can now work with a modernized API with less dependency on different aspose.pydrawing
classes. We have added new classes and enums to the updated API, such as IImage
, ImageFormat
, and Images
, which offer enhanced image manipulation capabilities.
ZIP64 Support For Your Presentations
This version of the PowerPoint API allows saving presentation files exceeding 4GB in ZIP64 format using the newly introduced PptxOptions.zip64_mode
property on Linux machines. This Python coding sample demonstrates how to apply ZIP64 compression using the new property.
import aspose.slides as slides
with slides.Presentation("demo.pptx") as pres:
pptx_options = slides.export.PptxOptions()
pptx_options.zip_64_mode = slides.export.Zip64Mode.ALWAYS
pres.save("demo-zip64.pptx", slides.export.SaveFormat.PPTX, pptx_options)
Source*
Export Presentations to Video
Build feature-rich conversion applications targeting the Linux platform in Python by integrating the ability to convert presentations to video with animations and transitions included using the new PresentationEnumerableFramesGenerator
class and the enumerate_frames
method of this class. Please check out the following sample code to learn more about this feature.
import aspose.slides as slides
fps = 30
with slides.Presentation("animated.pptx") as presentation:
with slides.export.PresentationEnumerableFramesGenerator(presentation, fps) as frames_generator:
for frame_args in frames_generator.enumerate_frames(presentation.slides):
frame_args.get_frame().save("frame_{}.png".format(frame_args.frames_generator.frame_index))
Source*
Optimized PDF Export
Version 24.4 of the Python library supports rasterizing the fonts with bold styling and exporting them to PDFs with high fidelity using the PdfOptions.rasterize_unsupported_font_styles
property, as demonstrated in the following sample code.
import aspose.slides as slides
with slides.Presentation() as pres:
pdf_options = slides.export.PdfOptions()
pdf_options.rasterize_unsupported_font_styles = True
pres.save("pres.pdf", slides.export.SaveFormat.PDF, pdf_options)
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Slides for Python via .NET 24.4 Release Notes.