PlatformNotSupportedException when Saving Slides to PDF in C# on Mac

Hello,

We have a .Net 8.0 application using Aspose.Slides.Net 24.8.0

With the following source code, we have a System.PlatformNotSupportedException System.Drawing.Common is not supported on nonWindows platforms

using (var presentation = new Slides.Presentation(source))
       presentation.Save(targetFile, Slides.Export.Format.Pdf);

As described in Aspose.Slides package, we were expected it is cross-platforms, but it is obviously not since it is not working on Mac OS.

Hoping this issue will be adressed soon.
Regards

@tfipsrd,
Thank you for contacting support. We are sorry that you have to encounter this problem. Could you please specify which version of Aspose.Slides for .NET assembly you are using (NuGet package, ZIP package, or CrossPlatform NuGet package)?

Aspose.Slides.NET 24.8.0 Nuget Package.

@tfipsrd,
Thank you for the additional information. Please note that the NuGet package with Aspose.Slides for .NET currently lacks support for cross-platform Aspose.Slides for .NET 6+.
More details: Aspose.Slides for .NET 6 Cross Platform|Aspose.Slides Documentation

You should use Aspose.Slides for .NET from the ZIP package or the NuGet CrossPlatform version.

Hi,

This is not working on Mac arm64.
Exception: unable to load shared library libaspose.slides.drawing.capi_applelang_arm64

@tfipsrd,
We are sorry that you have to encounter this problem. Could you please share the simplest project to reproduce the error you encountered?

Just import Aspose.Slides.NET6.CrossPlatform 24.8.0

Excecute this c# code:

using (var presentation = new Slides.Presentation(@"test.pptx"))
       presentation.Save("test.pdf", Slides.Export.Format.Pdf);     

The above exception is raised on Mac arm64. IT works on Mac Intel 64.

@tfipsrd,
Thank you for the additional information.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44656

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@tfipsrd,
Our developers have investigated the case. We have tested the NuGet package Aspose.Slides.NET6.CrossPlatform 24.8.0 in a .NET 8 application on macOS Ventura ARM64 and did not encounter any runtime issues. The following attachment contains an archive with a configured .NET 8 project: SLIDESNET_44656.zip (2.1 KB).

For convenience, we have included debug.sh and release.sh for building and running the project.
Please also ensure that the necessary dependencies are installed (fontconfig). Please see the screenshot: readme.png (129.2 KB)

Hello,

Indeed, fontconfig was missing…
You need to give an out-of-the-box solution with all the dependencies…
We can’t ask all our clients to install homebrew then fontconfig after installing our product.

Please, make the move to distribute all the dependencies in the Nuget package.
Thanks

@tfipsrd,
I am working on your requirements and will get back to you soon.

@tfipsrd,
Thank you for your patience.

Regarding your requirements to distribute all the dependencies in the NuGet package, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44712

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.