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

Free Support Forum - aspose.com

PPT memorystream into PPTX output distortion


Our code is developed around PPT and we use Presentation throughout. A request came up to provide the output as PPTX - which we can do as such:

var pptx = new PresentationEx(presentationMemStream);

This works fine and produces the PPTX as required. However there are two bugs, one of which I have worked around - the other not and for which I am seeking assistance.

a) Bullet points appearing
When I add text to the PPT as follows:

text = “test”;
TextFrame textFrame = shape.AddTextFrame(text);

All textboxes will be a list in my result. The work around is as follows:

text = “test”;
TextFrame textFrame = shape.AddTextFrame("");
textFrame.Text = text;

Tested and ‘worked around’ on Aspose.Slides 6.5.0

b) Drop shadows appearing

For some weird reason all text in the document gets the drop shadow property set. I have explicitly set the drop shadow to FALSE on the containing paragraph, but that has no effect whatsoever: all items are still rendered with a drop shadow in the resulting PPTX.

Is this a known bug or am I doing something wrong?

Find the input and output attached.


Thanks for your interest in Aspose.Slides.

I have observed the two presentation files shared by you and have not been able to completely understand your requirements. Can you please elaborate the requirements in details so that I may help you out further. Can you please explain what you are looking Aspose.Slides for offer you in your situation.

Many Thanks,

Hi Mudassir,

Okay, consider the following code which is heavily simplified but produces the issue:

            License license = new License();
        <span style="color:#2b91af;">Presentation</span> ppt = <span style="color:blue;">new</span> <span style="color:#2b91af;">Presentation</span>(<span style="color:#a31515;">@"C:\temp\trial.ppt"</span>);
        <span style="color:#2b91af;">MemoryStream</span> stream = <span style="color:blue;">new</span> <span style="color:#2b91af;">MemoryStream</span>();

        stream.Position = 0;
        <span style="color:#2b91af;">PresentationEx</span> pptx = <span style="color:blue;">new</span> <span style="color:#2b91af;">PresentationEx</span>(stream);
        pptx.Write(<span style="color:#a31515;">@"C:\temp\trial.pptx"</span>);</pre><pre style="background-color: white; "><font face="Arial" size="2"><span style="white-space: normal; ">This will take the PPT into a memorystream and convert it to PPTX. Now when you look at the result PPTX there is distortion. Shadows are being added - these did not exist before. I want to convert the PPT file to PPTX (in my own application the PPT is a memorystream already) without such artefacts.</span>


Hi Roeland,

Thanks for sharing the details. I have worked with the presentation files shared using the sample code provided by you and have been able to observe the shadow issues in values for charts. For sake of assurance before adding the issue in our issue tracking system, I have shared the identified issues in the attached image files. Can you please verify that is this the issue you are highlighting or there is some thing else as well that I am missing on end.

PS: I have used Aspose.Slides for .NET 6.6.0 on my end.

Many Thanks,


Yes, these are the issues I am referring too. Are you aware of a workaround for the time being? The only one I can think off is iterating all TextFrames and set the Shadow off in the PresentationEx object and that is not really optimal.


Hi Roeland,

I have created an issue with ID SLIDESNET-33712 in our issue tracking system to further investigate and resolve the issue of shadows getting appeared for the text frames text in converted presentation. For the time being, I have created a sample code that accesses the text frames insides slides and setting the shadow to null. This is the only option that can be used presently.

public static void ReolanIssue()


// License license = new License();

// license.SetLicense(“Aspose.Slides.lic”);

String path = @“D:\Aspose Data”;

Presentation ppt = new Presentation(path+“trial.ppt”);

MemoryStream stream = new MemoryStream();


stream.Position = 0;

PresentationEx pptx = new PresentationEx(stream);
         SlideEx slide=<span class="kwrd">null</span>;<br>
         ShapeEx shape = <span class="kwrd">null</span>;<br>
         AutoShapeEx ashp = <span class="kwrd">null</span>;<br>
         TextFrameEx txt = <span class="kwrd">null</span>;<br>

for (int i = 0; i < pptx.Slides.Count; i++)



for (int j = 0; j < slide.Shapes.Count; j++)


shape = slide.Shapes[j];

if (shape is AutoShapeEx)


ashp = (AutoShapeEx)shape;

if (ashp.TextFrame != null)


txt = ashp.TextFrame;

PortionEx por = txt.Paragraphs[0].Portions[0];

if (por.PortionFormat.EffectFormat.OuterShadowEffect != null)


por.PortionFormat.EffectFormat.OuterShadowEffect = null;

int s = 9;



}//End AutoshapeEx

}//For Shape End

}//For Slide End

pptx.Write(path + “trial_new.pptx”);


We are sorry for your inconvenience,

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

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.