Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFToImage doesn't work on a MAUI App that runs on iOS or MacCatalyst #52

Open
Auto72 opened this issue Nov 30, 2023 · 4 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Auto72
Copy link

Auto72 commented Nov 30, 2023

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?

@Auto72 Auto72 added the enhancement New feature or request label Nov 30, 2023
@sungaila
Copy link
Owner

sungaila commented Dec 1, 2023

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.)

@sungaila sungaila added this to the v2.5.0 milestone Dec 1, 2023
@Auto72
Copy link
Author

Auto72 commented Dec 4, 2023

I tried and it doesn't work.

@Auto72
Copy link
Author

Auto72 commented Dec 4, 2023

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.

1

2

@sungaila
Copy link
Owner

sungaila commented Dec 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants