We are using “Aspose.Total.NET.lic”. We are trying to do ppt to pdf conversion using Aspose.Slides, it is throwing “PlatformNotSupportedException” exception in dotnet 8 runtime docker image mcr.microsoft.com/dotnet/aspnet:8.0, which is linux based image :
**System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.**
2024-10-22T08:03:40.691810834Z at System.Drawing.StringFormat.get_GenericTypographic()
2024-10-22T08:03:40.691815834Z at ..ctor(Bitmap , Boolean )
2024-10-22T08:03:40.691821334Z at ..ctor(Bitmap )
2024-10-22T08:03:40.691826134Z at ..ctor(Int32 , Int32 , Single , Single , Boolean , , , List`1 )
2024-10-22T08:03:40.691831735Z at Aspose.Slides.Slide.(Boolean , , , List`1 , InterruptionToken )
2024-10-22T08:03:40.691837135Z at .(Presentation , Stream , Int32[] , PdfOptions , InterruptionToken )
2024-10-22T08:03:40.691842235Z at .(Presentation , Stream , PdfOptions , InterruptionToken )
2024-10-22T08:03:40.691847235Z at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
2024-10-22T08:03:40.691864636Z at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format)
2024-10-22T08:03:40.691870036Z at KPMG.DocProcessor.PowerPoint.PowerPointProcessorAsposeImpl.ConvertToPDF(Stream docStream) in /App/DocProcessor/src/PowerPoint/PowerPointProcessorAsposeImpl.cs:line 14
2024-10-22T08:03:40.691876237Z at KPMG.DocProcessor.PowerPoint.PowerPointController.ConvertToPDF(IFormFile file) in /App/DocProcessor/src/PowerPoint/PowerPointController.cs:line 33
2024-10-22T08:03:40.691881137Z at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
2024-10-22T08:03:40.691886237Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
2024-10-22T08:03:40.691891337Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2024-10-22T08:03:40.691898638Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
2024-10-22T08:03:40.691903538Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2024-10-22T08:03:40.691908838Z at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2024-10-22T08:03:40.691913838Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2024-10-22T08:03:40.691918839Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2024-10-22T08:03:40.691923539Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2024-10-22T08:03:40.691928539Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2024-10-22T08:03:40.691933539Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2024-10-22T08:03:40.691938439Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
2024-10-22T08:03:40.691943640Z at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2024-10-22T08:03:40.691948440Z at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2024-10-22T08:03:40.691958040Z at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
It is working fine in windows 10.