Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.
Sat May 04, 2024 1:11 pm
I am receiving 2 AttributeErrors in Spire.Presentation for Python.
Code Example:
presentation = Presentation()
presentation.LoadFromFile(filename)
presentation.EmbedTrueTypeFonts = True
presentation.SaveSubsetFonts = True
presentation.SaveToPdfOption.ContainHiddenSlides = False
-> AttributeError: function 'SaveToPdfOption_set_ContainHiddenSlides' not found
presentation.SlideCountPerPageForPrint = 1
-> AttributeError: function 'Presentation_set_SlideCountPerPageForPrint' not found
presentation.SaveToFile(pdf_filename, PptFileFormat.PDF)
presentation.Dispose()
-
wolfgang.colsman
-
- Posts: 30
- Joined: Mon Jan 15, 2024 2:14 pm
Mon May 06, 2024 6:36 am
Hi,
Thanks for your message.
I've logged this issue into our bug tracking system with ticket number SPIREPPT-2503, our developer will investigate this issue. Once it’s resolved, we will update you. Sorry for any inconvenience caused!
Sincerely,
Doris
E-iceblue support team
-
Doris.Liu
-
- Posts: 409
- Joined: Mon Nov 07, 2022 8:10 am
Fri Nov 08, 2024 10:08 am
Hi,
Thank you for your patience!
Glad to inform you we released Spire.Presentation for Python Version:9.11.1, which contains the fix of the issue SPIREPPT-2503. Welcome to download it from the following link and test.
Please note that the property SlideCountPerPageForPrint is intended for setting the number of slides per printed page, but printing is currently not supported.
You can use the following code to convert the presentation to PDF:
- Code: Select all
presentation.SaveToPdfOption.ContainHiddenSlides = True
presentation.SaveToPdfOption.PageSlideCount = PageSlideCount.One
download:
https://www.e-iceblue.com/Download/Spir ... ython.htmlSincerely,
Doris
E-iceblue support team
-
Doris.Liu
-
- Posts: 409
- Joined: Mon Nov 07, 2022 8:10 am