Error converting pptx to pdf on linux

Also since we are trying to upgrade from 21 to 23.8:

[ERROR] Unhandled exception thrown while processing s3-20230920-55-88eoyk.pptx. Original exception message: The type initializer for 'Gdip' threw an exception., exception: System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
 ---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
   at System.Drawing.LibraryResolver.EnsureRegistered()
   at System.Drawing.SafeNativeMethods.Gdip.PlatformInitialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipStringFormatGetGenericTypographic(IntPtr& format)
   at System.Drawing.StringFormat.get_GenericTypographic()
   at ..ctor(Bitmap )
   at e..ctor(Int32 , Int32 , Single , Single , Boolean ,  ,  , List`1 )
   at Aspose.Slides.Slide.(Boolean , `2 ,  , List`1 , InterruptionToken )
   at e.(Presentation , Stream , Int32[] , PdfOptions , InterruptionToken )
   at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   at .w( , Stream )
   at w.( , Func`2 , Action`1 )
   at .(Func`2 , Action`1 , ConvertOptions )
   at e.( ,  , ConvertOptions )
   at .( ,  ,  , ConvertOptions )
   at .( ,  ,  , ConvertOptions )
   at .`1.( ,  , ConvertOptions )
   at .( ,  ,  , ConvertOptions )
   at .`1.( ,  , ConvertOptions )
   at .( ,  ,  , ConvertOptions )
   at .`1.( ,  , ConvertOptions )
   at .( , ConvertOptions )
   at v.( ,  , ConvertOptions , & )
   at (Object , Object[] )
   at .(MethodBase , Object , Object[] , Boolean )
   at .(MethodBase , Object , Object[] , Boolean )
   at .(MethodBase , Boolean )
   at .( ,  )
   at .()
   at .(Boolean )
   at .(Object )
   at .(Object )
   at .()
   at .( ,  )
   at .()
   at .(Boolean )
   at .(Object )
   at .(Object )
   at .()
   at .(Boolean )
   at .(Boolean )
   at .(Object[] , Type[] , Type[] , Object[] )
   at .(Stream , String , Object[] , Type[] , Type[] , Object[] )
   at .(Stream , String , Object[] )
   at v..MoveNext()
   at d.()

Is linux still supported by groupdocs v23?

@talaw

Yes.
Please share your complete development environment details and a sample application using that issue could be reproduced at our end.

Moreover, it looks more like an environment related issue (e.g. missing dependencies/packages on Linux).

How can we share our code with you?

Ps. The official MS doc says System.Drawing.Common is only for Windows:

@talaw

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): CONVERSIONNET-6334

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.

Here is a prototype that you can run with docker that reproduces the issue above with pptx.

talaw-converter-20230922T141945.zip (89.6 KB)

1 Like

@talaw

Thank you for providing additional details. We will proceed with our investigation and keep you informed of any updates.

@talaw

Please use this modified Dockerfile.zip (499 Bytes).
Add next to your converter.csproj file a file named runtimeconfig.template.json with the following content:

{
    "configProperties": {
        "System.Drawing.EnableUnixSupport": true
    }
}

Let us know if issue persists.