After migrating to .Net 7, the application doesn’t work on Docker because of the dependency to System.Drawing.
using MemoryStream ms = new MemoryStream();
doc.Pages.FirstEx().SendTo(new PngDevice(new Resolution(100)), ms);
ms.Seek(0, SeekOrigin.Begin);
PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
at System.Drawing.Drawing2D.Matrix..ctor(Single m11, Single m12, Single m21, Single m22, Single dx, Single dy)
at #=z7JhFaSUoljpoMpgPGnZHGARdceTnqH1i1A==.#=zcO5wkTo=(Single #=zEa5Qlc8=, Single #=ziVvwtA4=, Single #=zdrkDA3A=, Single #=z3jl8Ogk=, Single #=ze_J3uh8=, Single #=zM0hRpVA=, #=zZziYqioG5Y7d$TVx8KWQ2G3u5X9y0$ShCw== #=zDl$RHio=)
at #=zTqXlOYlaxvwI3cvKbLLdxL24$T$TdTXnZdOfY7Q1N2Am.#=zvEShUlXQKr45(#=zw34YIMWWW$i4N0k7rtWKKQDzFW7uyTCAPA== #=zipLwPQ0=, #=zEgoqmgJlaAYLJwQeA58Fr41EPP4RkL6HRgnbLLg= #=zzS78m03K7NoA, #=zhLm6G76SAPmgChnFKfoKonvTrtDWiPuC5A== #=zQSM6H4w=, Single #=z_ejd7OSA2I3i, Single #=zwT2fYmJq0_TT, Boolean #=zTyX7SA7vKtjJhUEMnw==, Int32 #=zkRIEc3ETtZRgpQCByJ$S3zs=, Boolean #=z5KZAFB4b0ctw, Double& #=zlhFB2zc=, Double& #=zmPZiGts=, #=zEgoqmgJlaAYLJwQeA58Fr8JvLPHIgdCQwQ==& #=zOdlJIgA=)
at #=zTqXlOYlaxvwI3cvKbLLdxL24$T$TdTXnZdOfY7Q1N2Am..ctor(#=zRGmXEZ1amxDWPUqvzds5XUa1E33q #=zXGVj7e4=, #=zw34YIMWWW$i4N0k7rtWKKQDzFW7uyTCAPA== #=zipLwPQ0=, #=zEgoqmgJlaAYLJwQeA58Fr41EPP4RkL6HRgnbLLg= #=zzS78m03K7NoA)
at #=zPS_QfQwEHyKSONvtk$Y9iW8QKaRwdHpzBuEKxaM=.#=z4acuYWcR8E6K(#=zRGmXEZ1amxDWPUqvzds5XUa1E33q #=zXGVj7e4=, #=zw34YIMWWW$i4N0k7rtWKKQDzFW7uyTCAPA== #=zipLwPQ0=, #=zEgoqmgJlaAYLJwQeA58Fr41EPP4RkL6HRgnbLLg= #=zzS78m03K7NoA)
at #=zSc2zND9faB2l1cyMlh71roe82escM1Qx7rvrVZkkviVa.#=zlGTNJbg=(#=zRGmXEZ1amxDWPUqvzds5XUa1E33q #=zXGVj7e4=, #=zw34YIMWWW$i4N0k7rtWKKQDzFW7uyTCAPA== #=zipLwPQ0=, #=zEgoqmgJlaAYLJwQeA58Fr41EPP4RkL6HRgnbLLg= #=z13gOXjw=, #=zTqXlOYlaxvwI3cvKbLLdxL24$T$TdTXnZdOfY7Q1N2Am& #=ztjG86Q0=)
at #=zE18SMiXycCnPZQgFlQ6WFuPKdvUJ.#=zxjMisnU=(#=zTqXlOYlaxvwI3cvKbLLdxL24$T$TdTXnZdOfY7Q1N2Am& #=ztjG86Q0=)
at Aspose.Pdf.Devices.ImageDevice.#=zxjMisnU=(Page #=zipLwPQ0=)
at Aspose.Pdf.Devices.PngDevice.Process(Page page, Stream output)
The previous flag that allowed the compatibility using “System.Drawing.EnableUnixSupport”: true and libgdiplus is gone.
Looks like some important rewrites are going to be needed in Aspose.PDF to make it work.
Any estimation on when a .Net 7 + Docker compatible version could come?