PPTX Text Drop Shadow

For a PPTX, how do you add a drop shadow to some text?

Hi Dennis,

Thanks for your interest in Aspose.Slides.

Actually, Microsoft removed possibility to set separate shadow for text in PPTX. There is the same EffectFormat property used now for text and shape. In case shape is filled with some style then shadow applied to the shape. In case shape is not filled then shadow effect applied to a text in this shape. So, the shadow effect can be applied to the whole text only now and not to a confined to portion as in PPT

Thanks and Regards,

Could you give me a code example of how you would do this?

Hi Dennis,

We are sorry for getting to you so late but we were looking in to your query. Please follow this documentation link to see how to apply shadow effects on PPTX slides text.

We are extremely sorry for your inconvenience.

@deflagg,

Using Aspose.Slides for .NET 20.7, you are able to set the shadow effects on text. Please use following example on your end.

//Create an instance of Presentation class
Presentation pres = new Presentation();

//Get reference of the slide
ISlide sld = pres.Slides[0];

//Add an AutoShape of Rectangle type
IAutoShape ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 75, 150, 50);


//Add TextFrame to the Rectangle
ashp.AddTextFrame(“Aspose TextBox”);

// Disable shape fill in case we want to get shadow of text.
ashp.FillFormat.FillType = FillType.NoFill;

// Add outer shadow and set all necessary parameters
ashp.EffectFormat.EnableOuterShadowEffect();
IOuterShadow shadow = ashp.EffectFormat.OuterShadowEffect;
shadow.BlurRadius = 4.0;
shadow.Direction = 45;
shadow.Distance = 3;
shadow.RectangleAlign = RectangleAlignment.TopLeft;
shadow.ShadowColor.PresetColor = PresetColor.Black;

//Write the presentation to disk
pres.Save(@“D:\OutShadow.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);