We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Paragraph indentation does not work in PowerPoint

Hello,

Please save (create) PPT file from another PPT file. If there is a bullet lists with the ‘Increase List Level’ + customized indent, the output in PPT (file TextFrameLevelNew.ppt) seems to remove the indent completely. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

In a attached sample:

Test1 is using button ‘Increase List Level’;

Tesrt2 is using manual indentation 1.3 cm in Paragraph dialog.

string fileName = GetPathFile() + "TextFrameLevel.ppt";

string fileNameNew = GetPathFile() + "TextFrameLevelNew.ppt";

Presentation pres = new Presentation(fileName);

Slide fstSlide = pres.GetSlideByPosition(1);

pres.Save(fileNameNew, Aspose.Slides.Export.SaveFormat.Ppt);

Thank you!

Is there any workaround?

Hi Inga,


Thanks for inquiring Aspose.Slides.

I have observed the issue shared by you and suggest you to please try using Aspose.Slides for .NET 7.0.0 on your end. If there is still an issue then please share the feedback with us.

Many Thanks,

Thank you for quick response.

The same result with Slides 7.0.0. The issue still exists.

Hi Inga,


I have worked with the presentation file shared by you and have been able to observe the issue specified. Actually, the paragraph indentation gets changed on saving presentation and an issue with ID SLIDESNET-33960 has been created to further investigate and resolve the issue.


For the time being, I have shared the following work around code that you can use on your end for your investigation.

public static void ChangeIndent()
{
String path = @“C:\Users\Mudassir\Desktop\TextFrameLevelNew”;
string fileName = path + “TextFrameLevel.ppt”;

Presentation fpres = new Presentation(fileName);
Slide fstSlide = fpres.GetSlideByPosition(1);
TextFrame txtFrame = null;
Paragraph para = null;
foreach (Shape shape in fstSlide.Shapes)
{
txtFrame = shape.TextFrame;
if (txtFrame != null)
{
for (int i = 0; i < txtFrame.Paragraphs.Count; i++)
{
para = txtFrame.Paragraphs[i];
if (i>0)
{
para.TextOffset = 288;
para.BulletOffset = 173;

}

}
}

}

fpres.Save(path + “Testnew.ppt”, Aspose.Slides.Export.SaveFormat.Ppt);
}


Many Thanks,

Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Could you please fix this issue? Our client is waiting for it.

(It is not working with the latest Slides 7.2.0.0.)

Thank you very much in advance.

Hi Inga,


I regret to share that the issue shared has not yet been resolved. I have requested our development team to schedule the issue for investigation and resolution. I will share the updates with you as soon as it will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-33960) have been fixed in this update.