Weird blue circle when trying to save slide as Image

Hello,


I have a power point presentation with slide which has a list on it. When I try to save this slide as image output image has weird blue circle in the corner. Below are links to power point screenshot + output image. I tried both with most resent trial version + licensed version I have. Both give the same result. Any workaround here?

http://host1.staturesoftware.com/demofiles/images/List_in_powerpoint.png

http://host1.staturesoftware.com/demofiles/images/SavedSlide.png

Hi Vitaliy,

Thanks for inquiring Aspose.Slides.

I have observed the issue specified. However, in order to reproduce the issue on our end and to help you out further, I need the source presentation along with the code snippet used for your investigation. Also, I like you to please try using Aspose.Slides for .NET 6.6.0 on your end as well.

Many Thanks,

When I tried to prepare that I could not reproduce. After small digging I found when it breaks. See code snapshot below, it basically takes posted file and saves it to pptx (idea is that site allows loading presentations both as ppt and pptx while always saves as pptx). Either it does not load good from input stream or just load and save breaks it, I can’t say. When I save and use file ‘as-is’ there is no weird circle.




[HttpPost]
public ActionResult Import(int id, HttpPostedFileBase PPTFile)
{
LoadFormat format = PPTFile.FileName.EndsWith(".ppt", StringComparison.OrdinalIgnoreCase)
? LoadFormat.Ppt
: LoadFormat.Pptx;
string sourcePPT = @“d:\Temp\test.pptx”;
PresentationEx presFile = new PresentationEx(PPTFile.InputStream, new LoadOptions(format));
presFile.Save(sourcePPT, SaveFormat.Pptx);
}

Hi Vitaliy,

I liket to share that you can even load PPT or PPTX without checking the format using PresentationEx directly and save that to PPTX as given in code snippet below.

PresentationEx pres=new PresentationEx("PPTorPPTX.pptx");
pres.Write("Saved.pptx");

Secondly, I am unable to share that whether there is some issue while loading from streams or some issue while saving the presentation.For this, I may request you to please share the sample presentation with usalong with generated output so that I may try to reproduce the same on my end.I may try loading the source presentation on my end using MemoryStreams.

Many Thanks,

I attached it but if you try to load just from file – it works file. Only when this (and many similar) files come from http post – here it breaks. I guess you need to create some dummy html page to reproduce all that.

Hi Vitaliy,

I have worked with the presentation file shared by you using Aspose.Slides for .NET 6.6.0 on my end have not been able to observe issue in generated thumbnail and saved presentation. For your kind reference, I have attached the sample code, thumbnail and generated presentation. If you are still able to reproduce the issue on your end then kindly share the sample project with us that you are using to reproduce the issue. We will use the same to reproduce on our end to help you further. I will really appreciate your cooperation in this regard.

Many Thanks,

Like I was trying to say if you try and open it as file it works (no matter where, web or desktop). It only does not if you try to open presentation from http posted file, if you have file uploader on your web form and post it to the server.

Unfortunately I have no ability to continue this investigation after workaround for my initial issue was found. I also believe this could depend on framework version or IIS versus built-in server or even browser itself, or mvc versus web forms, a lot to check.

Hi Vitaliy,


Thanks for sharing the additional information, Unfortunately, I don’t have the desired environment to reproduce the issue using http post. However, I have created an issue with ID SLIDESNET-33737 in our issue tracking system so that our development team may try to further investigate and reproduce the issue on their end. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,