Problem with converting images

Hi,

I'm using latest version of Slides component in ASP.net application. When i'm converting some PPT files into images, images not converting properly.

I'm using following code to convert into Image.

public static void CreatePPTImages(string FolderPath, string FilePath)
{
Aspose.Slides.Presentation ObjPresentation = new Aspose.Slides.Presentation(FilePath);
if (System.IO.Directory.Exists(FolderPath) == false)
System.IO.Directory.CreateDirectory(FolderPath);
else
{
System.IO.Directory.Delete(FolderPath, true);
System.IO.Directory.CreateDirectory(FolderPath);
}

for (int j = 1; j <= ObjPresentation.Slides.Count; j++)
{
pres2.GetSlideByPosition(j).GetThumbnail().Save(FolderPath + "/slide" + j.ToString() + ".JPG");
}
}

Attchment is not getting coverted properly.

Thanks

Amit Pardeshi

Have you guys had any success with reproducing and fixing this? We have a critical Client issue regarding this and they are waiting on a response from us. This also affects the creation of PDF from powerpoint, so it’s got multiple implications for us.

Thanks
– Andy

There is the same problem with explanation why it happens:
Free Support Forum - aspose.com

Unfortunately it can’t be fixed in short time.

Do you guys have a work around for this - We tried using EMF or conventional WMF and neither worked.

Thanks

- Andy

Dear Andy,

Could you provide any example when EMF files don’t work?

Hi

I’m sending this on behalf of Andy.

Please find attached zip file with original PPT and convert (Distorted) Images.
I’m using following code to convert PPT to EMF image in my ASP.Net application.

public static void CreatePPTImages(string FolderPath, string FilePath)
{
    Aspose.Slides.Presentation ObjPresentation = new Aspose.Slides.Presentation(FilePath);
    Size objsize = new Size(430, 370);

    for (int j = 1; j <= ObjPresentation.Slides.LastSlidePosition; j++)
    {
        ObjPresentation.GetSlideByPosition(j).GetThumbnail(objsize).Save(FolderPath + "/slide" + j.ToString() + ".EMF", System.Drawing.Imaging.ImageFormat.Emf);
    }
}

Please do the needful so correct image is rendered for the attached PPT.

Thanks
Amit Pardeshi

It looks like you didn’t understand me. I didn’t write you should save thumbnail in emf format.
I just suggested using emf metafiles instead of wmf on a slide.

Hi Alcrus,

There are so many other problems while converting PPT to Images or PDF.

In PPT #1: Header is coming in next line.
In PPT #2: Graph is showing distorted image.
In PPT #3: In bottom, slide no is not showing up.

I have attached a zip file including all files. Please have a look and do needful.

Thanks
Amit Pardeshi

Hi,

I'm still waiting for your response.

Thanks

Amit Pardeshi

  1. That is because wrong reading of font from a presentation. It will be fixed very soon.
    2. Chart is emf image stored in the ppt file. Aspose.Slides draw it “as is”.
    3. Slide numbers are not supported yet. Aspose.Slides always draw “0” instead.

Hi Alcus,

Is there any update?

Thanks

Amit Pardeshi

Slide numbers on thumbnails already implemented and will be available in the next hot fix.

Hi,

I'm using latest version of Slides component in ASP.net application. When i'm converting some PPT files into images, color is not showing properly. I have attached the slides in zip format which are before converted and after converted slides.

Thanks

Hari Babu

Hello,

Sorry, but Aspose.Slides can’t read, change or draw multicolor gradients.
We are going to support it in the future.