Hello,
Thank you for your respone. I'm using FreeSpire.Presentation - 4.11.0. It is the latest version at the NuGet repository.
I handled to set width and height with that line.
- Code: Select all
presentation.SlideSize.Size = new SizeF(templatePresentation.SlideSize.Size.Width, templatePresentation.SlideSize.Size.Height);
But cloned presentation height doesn't set correctly. And maybe for that reason i have scale issues. Also if i changed the height at cloned presentation scale problem doesn't fix.
When i debug the code i saw that cloned presentation SlideSize.Size set correctly.
I added screenshots below. I also uploaded master-source presentation pptx file.
My Code:
- Code: Select all
Spire.Presentation.Presentation presentation = new Spire.Presentation.Presentation();
presentation.Slides.RemoveAt(0);
presentation.SlideSize.Type = templatePresentation.SlideSize.Type;
presentation.SlideSize.Size = new SizeF(templatePresentation.SlideSize.Size.Width, templatePresentation.SlideSize.Size.Height);
presentation.SlideSize.SizeOfPx = new SizeF(templatePresentation.SlideSize.SizeOfPx.Width, templatePresentation.SlideSize.SizeOfPx.Height);
presentation.SlideSize.Orientation = templatePresentation.SlideSize.Orientation;
Login to view the files attached to this post.