7.pdf (65.1 KB)
i am unable to extract the background for the first slide with the code you have provided:
import aspose.slides as slides
from aspose.pydrawing.imaging import ImageFormat
# slide_index = 2
scale = 1
with slides.Presentation("7.pptx") as presentation:
slide_size = presentation.slide_size.size
for slide_index in range(len(presentation.slides)):
slide_to_be_copied = presentation.slides[slide_index]
with slides.Presentation() as temp_presentation:
temp_presentation.slide_size.set_size(
slide_size.width, slide_size.height,
slides.SlideSizeScaleType.DO_NOT_SCALE)
slide = temp_presentation.slides.add_clone(slide_to_be_copied)
# Remove all shapes and leave only the slide background.
slide.shapes.clear()
with slide.get_thumbnail(scale, scale) as background:
background.save("output"+str(slide_index)+".png", ImageFormat.png)
The output is not extracting background for the first slide.
output0.pdf (9.5 KB)
@jwala.vaishnavi2412,
Thank you for contacting support.
Could you please share the 7.pptx file you used? You can zip the file and upload an archive here. Then we will check the case shortly.
7.zip (158.5 KB)
This is the ppt. Unable to extract the design on background.
@jwala.vaishnavi2412,
With Aspose.Slides for Python 23.9 and the code example above, I was able to get the following result:
output0.png (109.4 KB)
output1.png (1013 Bytes)
output1.png (1013 Bytes)
We recommend using the latest version of Aspose.Slides for Python.
I have upgraded aspose.slides to 23.9. Currecntly i’m using a temporary licence. I am still unable to extract the background.bg.png (91.8 KB)
output0.png (2.7 KB)
Also i am getting this warning :
** (process:15561): WARNING **: 15:38:54.686: NOT IMPLEMENTED: GdipWidenPath
@jwala.vaishnavi2412,
Could you please indicate the OS version you ran the code on?
os version.png (36.0 KB)
These are the details of os version i’m using.
@jwala.vaishnavi2412,
Thank you for the additional information. I’ve reproduced the issues you decsribed.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESPYNET-132
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@jwala.vaishnavi2412,
The issues you found earlier (filed as SLIDESPYNET-132) have been fixed in Aspose.Slides for Python 24.5 (Windows x86, Windows x64, Linux, macOS x86-x64, macOS ARM64).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page or PyPI.