This project used GDI+ for encoding the bitmap provided by PDFium when rendering. PDFium just returns a pointer to the memory it stored its rendered PDF bitmap.
GDI+ supports BMP, GIF, JPEG, PNG and TIFF as output image formats.
I decided for SkiaSharp as a cross-platform replacement. However, it has two drawbacks found so far:
BMP, GIF and TIFF are not supported. These need third-party libs to reimplement these image formats.
The NuGet packages becomes even larger. Now both pdfium and SkiaSharp native libraries have to be included.
On the positive side:
WebP added as supported image format.
No need to install libgdiplus on Linux and macOS anymore.
Support for System.Drawing.Common (GDI+) on other platforms than Windows will stop with .NET 6.0 and newer: System.Drawing.Common only supported on Windows
This project used GDI+ for encoding the bitmap provided by PDFium when rendering. PDFium just returns a pointer to the memory it stored its rendered PDF bitmap.
GDI+ supports BMP, GIF, JPEG, PNG and TIFF as output image formats.
I decided for SkiaSharp as a cross-platform replacement. However, it has two drawbacks found so far:
On the positive side: