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

Free Support Forum - aspose.com

Distortion in Shapes after converting to Images and PDF

We are trying to convert a pptx file to pdf file and have observed that the charts/graphics of some of the contents is getting distorted. I have attached two presentations and their respective generated slide images and pdfs where the issue is happening. I have attached the

Issue :

  1. When capturing a slide image of every slide in pptx, some of the images are having distortion in charts and graphics.
  2. When converting pptx file to pdf, some of the shapes are getting distorted/inverted.

Product Used :

  1. Aspose Slides 17.8.0.0

Code Used :

  1. For Issue 1 :
    private static void GetImageOfSlideSample(ISlide slide, string ImagePath)
    {
    float scale = 1;
    Bitmap bitmap = slide.GetThumbnail(scale, scale);
    bitmap.Save(ImagePath, System.Drawing.Imaging.ImageFormat.Jpeg);
    bitmap.Dispose();
    }

  2. For Issue 2 :
    public static void ConvertPPTToPDF(string srcFilePath, string destFilePath)
    {
    registerLicense();
    Presentation presentation = new Presentation(srcFilePath);
    PdfOptions opts = new PdfOptions();
    opts.SaveMetafilesAsPng = false;
    opts.SufficientResolution = 90f;
    presentation.Save(destFilePath, Aspose.Slides.Export.SaveFormat.Pdf, opts);
    }

AsposeSamples.zip (191.9 KB)

Attached are sample files used to reproduce the issue.

@DeepakMishra,

I have worked with the presentation file shared by you and have been able to observe two issues. An issue with ID SLIDESNET-39486 for images issue and issue with ID SLIDESNET-39485 has been created for PDF issue has been added in our issue tracking system to further investigate and resolve the issues. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed. Please share if there is another issue with highlight screenshot so we may log that in our issue tracking to help you out.

When can we expect it to be resolved and in which version

@DeepakMishra,

I have observed your comments. I like to inform that this issue has been added recently in our issue tracking system. Our product team will investigate issue in details and than we can share ETA for these issues. I request for your patience until issue gets resolved.