Empower your Linux applications with various new features in Aspose.Slides for Python via .NET 24.8. Optimize your Python presentation manipulation workflows and boost your solutions efficiently.
Convenient Picture Fill Control
Create professional-looking presentations with upgraded picture-fill features using this version of the Python PowerPoint processing library. Utilize tile properties for accurate texture positioning and scaling in shapes.
Code example for adding a rectangle shape with a tiled picture fill:
import aspose.slides as slides
with slides.Presentation() as pres:
first_slide = pres.slides[0]
new_image = slides.Images.from_file("image.png")
pp_image = pres.images.add_image(new_image)
# Adds the new Rectangle shape
new_shape = first_slide.shapes.add_auto_shape(slides.ShapeType.RECTANGLE, 0, 0, 350, 350)
# Sets the fill type of the new shape to Picture
new_shape.fill_format.fill_type = slides.FillType.PICTURE
# Sets the shape's fill image
picture_fill_format = new_shape.fill_format.picture_fill_format
picture_fill_format.picture.image = pp_image
# Sets the picture fill mode to Tile and changes the properties
picture_fill_format.picture_fill_mode = slides.PictureFillMode.Tile
picture_fill_format.tile_offset_x = -275
picture_fill_format.tile_offset_y = -247
picture_fill_format.tile_scale_x = 25
picture_fill_format.tile_scale_y = 15
picture_fill_format.tile_alignment = slides.RectangleAlignment.BOTTOM_RIGHT
picture_fill_format.tile_flip = slides.TileFlip.FLIP_BOTH
pres.save("Tile.pptx", slides.export.SaveFormat.PPTX)
Source*
Smooth Font Data Retrieval
Experience better control over fonts in Python presentations with the newly added get_font_bytes
method. It fetches font data as byte arrays for various font styles.
Code example to retrieve binary font data:
import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation("Presentation.pptx") as pres:
# Retrieve all fonts used in the presentation
fonts = pres.fonts_manager.get_fonts()
# Get the byte array representing the regular style of the first font in the presentation
font_bytes = pres.fonts_manager.get_font_bytes(fonts[0], drawing.FontStyle.REGULAR)
Source*
Here is an example of code to retrieve the embedding level of fonts:
import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation("Presentation.pptx") as pres:
# Retrieve all fonts used in the presentation
fonts = pres.fonts_manager.get_fonts()
# Get the byte array representing the regular style of the first font in the presentation
font_bytes = pres.fonts_manager.get_font_bytes(fonts[0], drawing.FontStyle.REGULAR)
# Determine the embedding level of the font
embedding_level = pres.fonts_manager.get_font_embedding_level(font_bytes, fonts[0].font_name)
Source*
Restricted Fonts Identification
Render presentations on Linux systems effortlessly and equip your Python solutions with the ability to recognize restricted fonts in PPTX files.
Add Summary Zoom in Exported PDFs
With Aspose.Slides for Python via .NET 24.8, developers can export their presentations with the Summary Zoom
functionality.
Getting valuable insights in your HTML5 presentations on Linux is easier than ever, with the insertion of comments during the document export process.
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.8 Release Notes.