sungaila / PDFtoImage

A .NET library to render PDF files into images.
https://www.sungaila.de/PDFtoImage/
MIT License
176 stars 19 forks source link

Support of .NET 7 MAUI #42

Open fhintsch opened 1 year ago

fhintsch commented 1 year ago

I tried the „PdfToImage“-Package in a .NET 7 MAUI environment. I want to target all MAUI supported platforms (Android, iOS, macOS, Windows). This package seems to be great work, but unfortunately using PDFtoImage.Conversion.SavePng(img, pdfStream, height: 300) throws an Exception

{System.NotSupportedException: Only win-x86, win-x64, win-arm64, linux-x64, linux-arm, linux-arm64, osx-x64, and osx-arm64 are supported.    at PDFtoImage.PdfiumViewer.NativeMethods.LoadNativeLibraryNetCore(String path)    at PDFtoImage.PdfiumViewer.NativeMetho…}

Do you have any plans to make this package work for the .NET 7 MAUI platform?

sungaila commented 1 year ago

Hello @fhintsch, supporting Android and iOS for the net7.0 target framework shouldn't be an issue. However, I don't have the necessary hardware to test iOS.

sungaila commented 1 year ago

@fhintsch Where did you get this exception? Android, iOS, macOS or any combination of them?

fhintsch commented 1 year ago

I got it on macOS, the target is called "MacCatalyst".