I am using freeSpirepdf in dotnet core 3.1 webapi project and deployment environment is linux. I am able to smoothly use freeSpirepdf locally/debug but when i publish and deploy api on linux server i am getting this issue :
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory
at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
at System.Drawing.SafeNativeMethods.Gdip..cctor()
--- End of inner exception stack trace ---
at System.Drawing.SafeNativeMethods.Gdip.GdipCreatePath(FillMode brushMode, IntPtr& path)
at System.Drawing.Drawing2D.GraphicsPath..ctor()
at spr⤈..ctor()
at Spire.Pdf.PdfPageBase..ctor(sprន A_0, spr᠐ A_1)
at Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr᠐ A_1, sprន A_2)
at Spire.Pdf.Widget.PdfPageCollection.ᜅ(sprន A_0)
at Spire.Pdf.Widget.PdfFieldWidget.ᜀ()
at Spire.Pdf.Widget.PdfFieldWidget.get_Page()
at Spire.Pdf.Widget.PdfStyledFieldWidget.get_Bounds()
at Spire.Pdf.Widget.PdfTextBoxFieldWidget.ᜀ(String A_0)
at Spire.Pdf.Widget.PdfTextBoxFieldWidget.set_Text(String value)
Experts, All your inputs are welcome. Kindly help me out.