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.

Mon Apr 03, 2017 7:58 pm

Hi there,

I'm trying to figure out how to make a slide readjust the sizing of it's shapes and background theme when I change the slide size of the presentation. In PowerPoint, when you change the size, the shapes and background automatically scales to the new size; but when I create a new Presentation instance, set it to a certain size and append slides of different sizes, it doesn't scale to the new size.

I've also tried manually adjusting the shape sizes by the ratio between the new size and old size but that doesn't adjust the background theme's size nor does it scale properly (shapes float outside the page). Am I missing a step? I'm greatly appreciative of any help, thanks!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Tue Apr 04, 2017 9:11 am

Dear jinhuang1992,

Thanks for your inquiry.
I have tested the case you mentioned, and found the theme size has issue. I have posted this issue to our Dev team, once there is any progress, we will inform you.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Apr 19, 2017 1:46 pm

Thanks a bunch!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Thu Apr 20, 2017 1:40 am

Dear jinhuang1992,

Thanks for the information.
The issue has been fixed, and we will inform you when the hotfix is available.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Apr 27, 2017 7:53 pm

Thanks again! Is the hotfix released already?

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Fri Apr 28, 2017 1:55 am

Dear jinhuang1992,

Thanks for your inquiry.
Sorry that the hotfix is not released as some reasons, but we will release it within next week. And I will keep you updated in this post. Thanks for your waiting.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue May 09, 2017 8:42 pm

I have figured out that I have to resize all shapes (shapes from master slides + shapes in all other slides) within the presentation in order for them to be sized correctly when we change the size of a presentation (A4 to Letter etc.).

May I suggest a function that takes SlideSizeType as a parameter on the Presentation class and when this method is called, it resizes all shapes to its correct ratio along with the page size. If I want to resize a presentation, I don't believe we should be required to resize every single shape as well and that's what PowerPoint does when you change the sizing of it.

Thanks in advance!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Wed May 10, 2017 2:28 am

Dear jinhuang1992,

Many thanks for the detail.
I areadly tested the method you mentioned in the other post, and also found it has some issues, hence I didn't tell you. So sorry for this. And we are doing a new feature which would automatically adjust the size of content on the slide. Once there is no any issue after testing, we will let you know.
So sorry for all inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed May 10, 2017 1:46 pm

Not a problem, thank you!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Wed May 10, 2017 9:45 pm

One more thing, I was trying to access the master slide's slide layouts, how do I do that?

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Thu May 11, 2017 3:46 am

Dear jinhuang1992,

Thanks for your feedback.
Sorry that Spire.Presentation doesn't support accessing the master slide's slide layouts at present. But we have added it into our schedule. Once there is any progress, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jun 06, 2017 2:28 pm

Hi Betsy,

Any update on this? Thanks in advance!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Wed Jun 07, 2017 9:14 am

Dear jinhuang1992,

Thanks for your inquiry.
About the feature to automatically adjust the size of content on the slide, there are some issues exist after testing, and our Dev team is still working on it. Once the feature is available, we will let you know.
Regarding the other feature to access the master slide's slide layouts, our Dev team is still investigating and developing, but in development, there are some different opinions between us, so would you please provide us with sample document and point out what you want to access in detail? This would be helpful to detect if the feature can fulfill your requirement when it is achieved.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jun 08, 2017 2:01 pm

Great sounds good, and I have attached an example PowerPoint file; If you switch over to the Master Slide View, under the master page are the child slide layouts. I am unable to access the shapes within these slide layouts and make changes to them, I would like to be able to perform actions on these shapes as well. Please let me know if you're still unclear, thanks!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Fri Jun 09, 2017 2:08 am

Dear jinhuang1992,

Thanks for the information.
If there is any news, we will inform you immediately.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation