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

Free Support Forum - aspose.com

Elements of a Slide Are Not Appear Correctly in the PNG File

Hello, certain text, graphics and images are not being properly displayed when converted using aspose slides to png.

Please compare the attached PPT file to how it uploaded in Pinnit (Pinnit sign-in details are below). I tried to upload but the file type .pptx was not on the allowable list?

We tried uploading the given PPTX in the demo site provided by Aspose : https://products.aspose.app/slides/conversion and tried converting the PPTX to PNG, we could see the same issues.

Here are a few differences noticed on our file. I can email the file to you if you can’t see the issues using your own pptx.

  • Page 1: the spacing to the right of the word “Digital” is not proportionately the same
  • Page 3: the graphic arrows are not the same
  • Page 3: the text around the perimeter of the circle are placed differently and the text is wrapping differently
  • Page 4: the text within the boxes is wrapping differently
  • Page 5: the Netflix image is overlaying the word “Story”
  • Page 6 and 7: text is spaced differently and images are overlaying some of the text
  • Page 8: pie chart graphics are different (more rounded / 3 dimensional appearance)

@andrewlf,
Thank you for the issue description.

You can zip the file and upload the archive here. Please share the presentation and your output PNG files.

Okay, here is the powerpoint file zipped:
PPT_A_Roadmap_-_experiment_with_elements.pptx.zip (3.2 MB)

And the corresponding png files:
0.jpg (189.7 KB)
1.jpg (318.3 KB)
2.jpg (223.6 KB)
3.jpg (274.6 KB)
4.jpg (194.4 KB)
5.jpg (283.9 KB)
6.jpg (275.1 KB)
7.jpg (281.1 KB)
8.jpg (154.6 KB)

Here are a few differences noticed:

  • Page 1: the spacing to the right of the word “Digital” is not proportionately the same
  • Page 3: the graphic arrows are not the same
  • Page 3: the text around the perimeter of the circle are placed differently and the text is wrapping differently
  • Page 4: the text within the boxes is wrapping differently
  • Page 5: the Netflix image is overlaying the word “Story”
  • Page 6 and 7: text is spaced differently and images are overlaying some of the text
  • Page 8: pie chart graphics are different (more rounded / 3 dimensional appearance)

@andrewlf,
Thank you for the files. It will take me a while to test the case. We will reply to you as soon as possible.

@andrewlf,
All problems with text occurred on your side because some fonts was not installed on the operating system on which the conversion was performed (Tw Cen MT and Aharoni, for example). Please install the fonts used in the presentation into the operating system. Alternatively, you can load them as external fonts as shown below:

FontsLoader.LoadExternalFonts(fontFolders);

This should resolve the issues with text.

Documents: Custom Font
API Reference: FontsLoader Class

I’ve reproduced the problems with the 3D shape (circular arrows) and Pie charts and added the following tickets to our issue tracking system:

  • SLIDESNET-43109 (3D shape is getting flat when converting a slide from PPTX to an image)
  • SLIDESNET-43110 (Pie charts are getting more rounded and have 3D appearance)

We apologize for any inconvenience. Our development team will investigate these cases. You will be notified when the issues are resolved.

Unfortunately, I was unable to reproduce the image disappering on the slide 6. Please specify the following:

  • version of the operating system on which the conversion was run
  • .NET target platform in your app

Hello, regarding the font not being on the server, the text issue exists even after installing the concerned font i.e we installed Tw Cen MT (Bold) which is used on 4th slide of the PPT.

And in regards to your request for the following:

  • version of the operating system on which the conversion was run
  • .NET target platform in your app

Please find the details to be shared with Aspose help desk:
OS: Windows Server 2019
Aspose.Slides.NET: 21.7.0
DotNet: 5.0.302

@andrewlf,
Thank you for the additional information. There were many updates after version 21.7. Please check the issues you described using the latest version of Aspose.Slides if it is possible and share your results.

Please try loading the fonts using FontsLoader class as shown above. If the issue persists, please share the fonts you used.