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

Free Support Forum - aspose.com

Remove Unwanted Text form slide


I am using licensed version Aspose.Slides for .Net.
When i generate the PPT. There are some extra text.
“Click to edit Master text styles” ,“Click to edit Master title style”
in the slides. How can we hide that text from our C# code.
Please reply ASAP.

Hi Anuj,

Thanks for inuring Aspose.Slides.

I have observed the requirements shared by you and like to share that the predefined text displayed in empty placeholders of slide is displayed to depict that the placeholder is empty. If you observe the placeholder in slide show, it will depict that empty. In order to meet your requirement, you can set the placeholder text to empty space to avoid the default text view even in normal slide.

public static void testSlide()
Presentation pres = new Presentation();
ISlide slide= pres.Slides.AddEmptySlide(pres.LayoutSlides.GetByType(SlideLayoutType.TitleAndObject));
IAutoShape ashp =(IAutoShape) slide.Shapes[0];
ashp.TextFrame.Paragraphs[0].Portions[0].Text = " ";
pres.Save(“D:\Aspose Data\TestSlide.pptx”, SaveFormat.Pptx);

Many Thanks,