The latest release of Aspose.Slides for Python via .NET 24.8 brings an extensive list of features and enhancements to enhance your PowerPoint document processing workflows on Windows x32 architecture.
Control Picture Fill Easily
Generate visually appealing presentations with updated picture-fill functionality using the latest release of the Python presentation manipulation API. You can utilize tile properties for precise 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*
Seamless Font Data Retrieval
Obtain greater control over fonts in Python presentations with the new get_font_bytes
method. It lets you fetch font data as byte arrays for different 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*
Recognize Restricted Fonts
You can enjoy smooth rendering of presentations on Windows 32-bit systems with the ability to recognize restricted fonts in PPTX files.
Fine-tuned MathML Export
Generate MathML exports within your Python PowerPoint applications to reflect color and font size for precise mathematical equations accurately.
Summary Zoom Feature
Aspose.Slides for Python via .NET 24.8 enables you to experience a faultless rendering of your presentations with the Summary Zoom
feature now working effectively in exported PDF documents.
Get valuable insights directly in your HTML5 presentations on Win x32 with the availability 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.