Convert FDF to PDF in .NET Core Linux using Aspose.PDF for .NET - importFdf() throws exception

We are using Aspose.PDF to generate pdf file with fdf template. We use .net core 2.1 and plan to publish it to AWS Lambda.

Basically, everything works fine in Win10. However, in MacOS or Linux Container, it throws the following exception when trying to call importFdf().

Screen Shot 2020-04-15 at 9.04.33 pm.png (36.7 KB)

StackTrace:
at #=zTqlBPv_CEK4gvqR64nc57Q2y21I6SnkyU$Ofi044ZAY7EjtF$YPbPr4=.#=zP7CD9Ig=(#=zF$N2EwAoVvcOZLaxVt6rxlOJR6FngScAZ020XT5mH_aI #=zdepFo6$Tp6cU)
at #=zz4hI9qsKj8lF31zAWNdPxE27vMUathR5XdJLfIuW3oLWkLho4KWgjcukBGUaSnq3jy6JFxIxixrV.#=z97by9jc=(String #=zDsU0_qM=, #=z7GS$1utcjEvFgZ_8ESrPzlStZdGS5lCI0plwiWo= #=zvEKpPi8=, #=zgf9C1gSR42g5X52RPwlR2TyIOFlZ1xXCb6jcl92A88xM1X7fuwQe114= #=zSjsVOwmVulqD, Boolean #=zwhFLcRE=, Boolean #=zE4Bx7v4=, #=zCZLbAz4eJyV9yCi8x_VqXGnthY1sAPWj0A==& #=zUc3TUF4=, #=zF$N2EwAoVvcOZLaxVt6rxlOJR6FngScAZ020XT5mH_aI& #=zdepFo6$Tp6cU, String& #=zPlRfx55O_1qg)
at #=zTqlBPv_CEK4gvqR64nc57Q2y21I6SnkyU$Ofi044ZAY7EjtF$YPbPr4=.#=zc0fzebA=(#=zn99Y5yCMyviydefVXZU_ltsRZz8_fZ_vo9XE5b$PNOCemzkkGs_jJQY2nm4pc984NF7VjJRIuACCFMq$Xw==[] #=zNLo3UQVblfVNoCQ09aenFeotO3qR, String #=zDsU0_qM=, #=z7GS$1utcjEvFgZ_8ESrPzlStZdGS5lCI0plwiWo= #=zvEKpPi8=, #=zgf9C1gSR42g5X52RPwlR2TyIOFlZ1xXCb6jcl92A88xM1X7fuwQe114= #=zSjsVOwmVulqD, Boolean #=zwhFLcRE=, Boolean #=zE4Bx7v4=, #=zCZLbAz4eJyV9yCi8x_VqXGnthY1sAPWj0A==& #=z5rElCtQ=, #=zF$N2EwAoVvcOZLaxVt6rxlOJR6FngScAZ020XT5mH_aI& #=zdepFo6$Tp6cU, String& #=zPlRfx55O_1qg)
at #=zTqlBPv_CEK4gvqR64nc57Q2y21I6SnkyU$Ofi044ZAY7EjtF$YPbPr4=.#=zzHSnha_XU$u4(String #=zUPHozGo=, #=z7GS$1utcjEvFgZ_8ESrPzlStZdGS5lCI0plwiWo= #=zvEKpPi8=, #=zCZLbAz4eJyV9yCi8x_VqXGnthY1sAPWj0A==& #=z_BB0Q1g=, #=zF$N2EwAoVvcOZLaxVt6rxlOJR6FngScAZ020XT5mH_aI& #=zdepFo6$Tp6cU, String& #=z$o8E5Iw=)
at Aspose.Pdf.Forms.TextBoxField.#=zTapgkeV7D$QO(#=z1X3MSVzBhNOX #=zqbFmCVo=, Annotation #=zIabe51s=)
at Aspose.Pdf.Annotations.WidgetAnnotation.#=zwZ8dXS0=(Annotation #=zIabe51s=)
at Aspose.Pdf.Forms.Field.#=zRpwmVzs=(String #=zc6nNL3A=)
at Aspose.Pdf.Forms.Field.set_Value(String value)
at Aspose.Pdf.Forms.TextBoxField.set_Value(String value)
at Aspose.Pdf.Facades.Form.#=zO3C5FZwBfF7CLpTrZw==(#=zNyLJ8QjLERsSFWJ$3mviCbCakfFCL0UUkQ== #=zwfweNQA=, ICollection`1 #=zS4iWRu4=, String #=zPyW$DXPOg1IX)
at Aspose.Pdf.Facades.Form.ImportFdf(Stream inputFdfStream)

@ravi.wickramanayake

Would you please make sure that libgdiplus package is installed in your system where you are facing the issue. Also, please make sure to install all Windows Fonts in order to get desired results using Aspose.PDF. In case you still face any issue, please let us know by sharing sample FDF file and code snippet.