Python developers can use version 23.12 of Aspose.Slides for Python via .NET to empower their Python development exciting new features and enhancements on Windows 32-bit systems.
Key Highlights
- Optimized Quality of Images: Experience high-quality images and enhanced functionality while exporting presentations to PDF format on your Windows x32 machines with the latest update to the presentation manipulation API.
- Print Presentations as Handouts: Developers can now render PowerPoint presentations in a variety of handout layouts and effortlessly create handouts that perfectly suit the needs of their audience.
- File Size Reduction: With the capability to remove cropped areas of a picture, Aspose.Slides for Python via .NET 23.12 helps you optimize the presentation size and produce efficient presentations.
- Decorative Shapes: You can set shapes as decorative objects with this update to the Python API and enhance accessibility for users on Windows x32.
Export Presentations as Handouts
Python developers can now export PowerPoint presentations as handouts effortlessly on Windows 32-bit 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*
Introducing InkOptions
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 Image Areas
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 Windows x32. 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*
Set Decorative Shapes in Python
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. The following sample code demonstrates how to use this method:
Python developers can utilize the new Shape.is_decorative
property to set shapes as decorative objects, as highlighted in the Python code example below:
with Presentation("sample.pptx") as pres:
pres.slides[0].shapes[0].is_decorative = True
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.