Free Support Forum - aspose.com

Getting / setting font shadow colour

Hi there

I’m trying to modify a PowerPoint document by changing the text for each of the text portions in the document using Aspose.Slides. Before I modify the text, I store the text formatting properties, and re-apply them after the text is changed. I’m finding that the font shadow is changing from its original colour (white) to black, but I don’t see a portion property which represents it. This coloured shadowing is a “text effect” within the PowerPoint menu as far as I can see.

Is there any other way to set it, or is it something currently unsupported by this product?

Thanks

Eric

Hi Eric,

There is Portion.FontShadow property that only determines whether a font has shadow or not. However, we have another property ShadowFormat.ShadowColor that returns or sets shadow color. I shall investigate it. Can you please provide the sample ppt and the way you are storing the text formatting?

Hi Muhammad


Thanks for your reply. I have seen that property you mention before, but I’m not sure if it contains the information I need, as I notice that in the PowerPoint UI, there are shadow settings for a shape and also shadow settings for actual text. Maybe I’m wrong though, I’m a newcomer to Aspose.Slides :).

I’ve attached a sample file containing some text with the coloured shadow effect enabled.

Thanks

Eric

Hi Eric,

It seems you are creating ppt files using MS Power Point 2007 with the features not supported by MS Power Point 2003 version. Such a practice can result unexpected results when using Aspose.Slides for .NET. For the features provided by MS Power Point 2007, it is better to use pptx format and hence use the class library provided by Aspose.Slides.Pptx namespace.

Changing shadow color is a PowerPoint behavior. Font shadow and shape shadow color depend on background. On the light backgrounds shadow always black. On the dark backgrounds it's always white.

Hi Muhammad

Thanks for your reply. That file was originally a PPS file, which I then saved as a PPT file from within PowerPoint. I didn’t author it so I guess the original creator used PowerPoint 2007 to create it. It’s a good test file for our purposes as it uses a good mixture of PowerPoint features.

Do you know when you will be releasing a new Aspose.Slides release? I put in a feature request which one of your colleagues said would be included in the the next release, the ability to retrieve paragraphs from slide or presentation objects directly, rather than navigating their DOM.

Thanks

Eric

Hi Eric,

The next release is expected in the first or second week of November 09.