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 Oct 27, 2018 2:14 pm

PowerPoint has button to fit of cropping picture:

1.png


Whether Spire.Presentation some API which allows achieving this effect?

AdamShakhabov
 
Posts: 40
Joined: Wed Sep 26, 2018 12:03 pm

Mon Oct 29, 2018 9:52 am

Hi,

Thank you for contacting us and sorry for the late reply as weekend.
Sorry that our Spire.Presentation product doesn't support that feature at present, but we will consider adding the new feature to our future upgrade list. Once it is achieved in the future, we will let you know.

Sincerely
Anna
E-iceblue support team
User avatar

Anna.Zhang
 
Posts: 73
Joined: Thu Sep 27, 2018 3:20 am

Mon Dec 24, 2018 8:03 am

Hi,

Thanks for your patient waiting.
Glad to inform you that the new feature is implemented. Please download Spire.Presentation Pack Hotfix Version:3.12.4 and use below code to have a test.
Code: Select all
Presentation ppt = new Presentation();
ppt.LoadFromFile(@"sample.pptx");
foreach (IShape shape in ppt.Slides[0].Shapes)
{
    if (shape is SlidePicture)
    {
            SlidePicture slidepicture = (SlidePicture)shape;
            slidepicture.PictureAdjust();
    }
}
ppt.SaveToFile("Output.pptx", FileFormat.Pptx2013);


Sincerely
Anna
E-iceblue support team
User avatar

Anna.Zhang
 
Posts: 73
Joined: Thu Sep 27, 2018 3:20 am

Fri Dec 28, 2018 7:14 am

Hi,

Greetings from e-iceblue!
Have you tried the hotfix?
We will appreciate it if you could give us some feedback.

Sincerely
Anna
E-iceblue support team
User avatar

Anna.Zhang
 
Posts: 73
Joined: Thu Sep 27, 2018 3:20 am

Return to Spire.Presentation