We have indent issue in PPTX when we use Aspose.Slide Version 5.5.0.0. This version removes indent space below the bullet. It was working file with Aspose.Slide Version 5.0.1.0. Please find attached output from the two different version. Please let us know the solution ASAP because we have this code (5.5.0.0) in UAT and will move to production very soon.
Hi Rakesh,
Indent issue is still there with 5.7.0 version.
Hi Rakesh,
PresentationEx pres = new PresentationEx();//Accessing first slideSlideEx slide = pres.Slides[0];slide.Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 0, 0, 500, 100);slide.Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 0, 305, 500, 100);//Accessing the first and second placeholder in the slide and typecasting it as AutoShapeTextFrameEx tf1 = ((AutoShapeEx)slide.Shapes[0]).TextFrame;TextFrameEx tf2 = ((AutoShapeEx)slide.Shapes[1]).TextFrame;//Change the text in both placeholderstf1.Text = “Margin by Aspose Margin by Aspose Margin by Aspose Margin by Aspose”;tf2.Text = “Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose”;//Getting the first paragraph of the placeholdersParagraphEx para1 = tf1.Paragraphs[0];ParagraphEx para2 = tf2.Paragraphs[0];para2.BulletType = BulletTypeEx.Numbered;ParagraphEx para3 = new ParagraphEx();para3.BulletType = BulletTypeEx.Numbered;para3.Indent = 144;para3.Alignment = TextAlignmentEx.Center;para3.Text = “Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose”;tf2.Paragraphs.Add(para3);para1.MarginLeft = 72;para2.Indent=144;// para3.MarginLeft = 72;float Par1Margin = para1.MarginLeft;//Writing the presentation as a PPTX filepres.Write(“d:\MarginIndentAlign.pptx”);
This code has still indent issue. Can you please add some more text for para3? I haven’t changed single line of your code and see same issue.
Hi Rakesh,
PresentationEx pres = new PresentationEx();//Accessing first slideSlideEx slide = pres.Slides[0];slide.Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 0, 205, 500, 300);//Accessing the first and second placeholder in the slide and typecasting it as AutoShapeTextFrameEx tf = ((AutoShapeEx)slide.Shapes[0]).TextFrame;//Change the text in both placeholderstf.Text = “Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose”;//Getting the first paragraph of the placeholdersParagraphEx para1 = tf.Paragraphs[0];para1.BulletType = BulletTypeEx.Numbered;ParagraphEx para2 = new ParagraphEx();para2.BulletType = BulletTypeEx.Numbered;para2.Alignment = TextAlignmentEx.Center;para2.Text = “Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose Indent by Aspose”;para1.ParagraphFormat.MarginLeft = 50;para2.ParagraphFormat.MarginLeft = 50;para1.ParagraphFormat.Indent = 20;para2.ParagraphFormat.Indent = 20;para1.ParagraphFormat.HangingPunctuation = NullableBool.True;para2.ParagraphFormat.HangingPunctuation = NullableBool.True;tf.Paragraphs.Add(para2);//Writing the presentation as a PPTX filepres.Write(“d:\MarginIndentAlign.pptx”);
I think there may be an issue that remains with the special indentation in Aspose.Slides (at least for .NET – confirmed in 5.8.0):
If you clone a slide that has text with the special hanging line spacing and the paragraph is in a table, depending on the position in the table and the line spacing for the whole paragraph, it may or may not remove the hanging special… I have attached a working example pptx (AsposeTestIndent97.pptx) for testing.
The slide was composed using PowerPoint 2010, saved and then the first slide was cloned using the following lines:
PresentationEx pres = new PresentationEx§;
pres.Slides.InsertClone(0, pres.Slides[0]);
pres.Save(@“c:\AsposeTestIndent97.pptx”, SaveFormat.Pptx);
if you flip between slide 1 and slide 0, the shifting text will reveal the issue.
In the generated openXML doc, the paragraph indent sign is actually getting flipped – between positive and negative (though I don’t know if this is something you manipulate directly):
Hope this helps to identify and fix this issue once and for all…
Chadwick Posey
Hi Chadwick,
Thank you Mudassir,
Do you have an updated status on this bug or know if this will be fixed in the next monthly build?
Thanks
Chadwick
Hi Chadwick,
I have verified from our issue tracking system and like to share that the issue shared has not yet been resolved. I have requested our development team to schedule the issue. I will share the information with you as soon as the issue is resolved.
We are sorry for your inconvenience,
Thank you Mudassir for your earlier reply. Has the issue been scheduled yet? We are still stuck in the 4.x version until this can get resolved…
Thanks
Chadwick
Hi
Chadwick,
The issues you have found earlier (filed as SLIDESNET-33118) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.