Empower your Python projects on Linux with exciting new features, enhancements, and bug fixes using Aspose.Slides for Python via .NET 23.12.
Key Highlights
- Crystal Clear Images in PDFs: Seamlessly export your presentations to PDF on Linux machines with exceptional image quality. Aspose.Slides for Python via .NET 24.1 ensures your visuals look their best in the final document.
- Flexible Handouts Printing: With this Python API update, you can render presentations in various customizable handout layouts and create audience-specific handouts with ease on your Linux system.
- Streamlined Presentations, Smaller Files: You can now optimize presentation size by automatically deleting cropped picture areas. Enjoy leaner, more efficient presentations without wasted space.
- Control Ink Objects in Presentations: We have introduced the
InkOptions
class in the latest release of the Python API which enables controlling the ink objects within the exported documents.
Export Presentations as Handouts
Python developers can now export PowerPoint presentations as handouts effortlessly on Linux systems using the newly introduced HandoutType
enum, which includes different supported handout types. The following Python code snippet illustrates how to render a presentation in a handout layout:
with Presentation("pres.pptx") as pres:
options = RenderingOptions()
options.slides_layout_options = HandoutLayoutingOptions()
options.slides_layout_options.handout = HandoutType.HANDOUTS_4_HORIZONTAL
options.slides_layout_options.print_slide_numbers = False
pres.slides[0].get_thumbnail(options, Size(1920, 1080)).save("pres-handout.png")
Source*
Manage Ink Objects
Aspose.Slides for Python via .NET 23.12 introduces the new InkOptions
class and the corresponding IInkOptions
interface. This gives you control over how Ink objects appear in your exported documents, allowing you to customize the look and feel of your presentations. Please refer to the following Python code to learn about its usage:
with Presentation("pres.pptx") as pres:
options = PdfOptions()
options.ink_options.hide_ink = True
pres.save("pres.pdf", SaveFormat.PDF, options)
Source*
Remove Cropped Areas of Images on Linux
Using the newly added IPictureFillFormat.delete_picture_cropped_areas()
method in this release of the Python API, you can seamlessly remove the cropped areas from an image and optimize the size of your presentations on Linux machines. The following sample code demonstrates how to use this method:
with Presentation("demo.pptx") as presentation:
slide = presentation.slides[0]
# Gets the picture frame
pic_frame = slide.shapes[0]
# Deletes cropped areas of the picture frame image
cropped_image = pic_frame.picture_format.delete_picture_cropped_areas()
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 23.12 Release Notes.