PDFtoImage
PDFtoImage copied to clipboard
PDFToImage doesn't work on a MAUI App that runs on iOS or MacCatalyst
Detailed feature request
I tried a MAUI project and it doesn't work on iOS and MacCatalyst , because the PDFium library is missing.
Here I found Pre-compiled binaries of PDFium:
https://github.com/bblanchon/pdfium-binaries
Can you include the iOS Pre-compiled binary in the PDFtoImage library, so that we can use it on iOS also?
Hi @Auto72, could you please add bblanchon.PDFium.macOS and bblanchon.PDFium.iOS to your MAUI project and tell me, if it works for macOS and iOS?
I don't have a Mac to test this myself.
(Also this is a duplicate of #42.)
I tried and it doesn't work.
I also tried to add the following NuGet packages to the PDFToImage project,
"bblanchon.PDFium.iOS" "SkiaSharp.NativeAssets.iOS"
Adding the Target frameworks:
"net7.0-ios", "net8.0-ios".
but still with no luck :-( When I run the MAUI App on iOS, I can see the .NET splash screen for few moments and then the App crashes.
Hi @Auto72, third party libraries (such as pdfium) must be repackaged and signed for iOS/Catalyst. See also What are Frameworks? or All dynamic libraries must be frameworks on iOS.
SkiaSharp does this already but bblanchon.PDFium provides dylibs only. If you are able to help, please head over to that repo.
I can try see if I can help, I have a Mac and iOS.. I also have someone that knows a little bit about skia :)
@rmarinho Glad to hear that! We need someone that knows how to build Mac Catalyst binaries out of the pdfium code.
If you would like to take up the challenge, please take a look at this issue: https://github.com/bblanchon/pdfium-binaries/issues/168