Hello - I am seeing an issue exporting a Presentation with an SVG imbedded.
This is likely related to SLIDESNET-43450. I can confirm running Python Aspose.Slides via .Net 22.12.0
In the example below, modeled after https://docs.aspose.com/slides/python-net/image/#converting-svg-to-a-set-of-shapes, the returned deck is a black square.
My use-case is to render as a PNG. However, when exporting as a PPTX, the shapes appear to be extremely enlarged and on-top-of another.
image.png (1.8 KB)
import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation() as presentation:
# Read SVG file content
with open("my-test.svg","rt") as in_file:
svgContent = in_file.read()
# Create SvgImage object
svgImage = slides.SvgImage(svgContent)
# Get slide size
slide_size = presentation.slide_size.size
# Convert SVG image to group of shapes scaling it to slide size
presentation.slides[0].shapes.add_group_shape(svgImage, 0, 0, slide_size.width, slide_size.height)
# Save presentation in PPTX format
presentation.save("presentation_with_shape_svg.pptx", slides.export.SaveFormat.PPTX)
presentation.slides[0].get_thumbnail(drawing.Size(1920, 1080)).save("test.png", drawing.imaging.ImageFormat.png)