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

feat: allow loading PdfWrap from custom dynamic library #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wxxedu
Copy link

@wxxedu wxxedu commented Sep 17, 2023

Rationale:

There has been some problems for me loading the dynamic library on Android platform. After checking, I realized that it was because PdfWrap loads the dynamic library at path '/libpdfium.so', but it should be libpdfium.so. This is because:

ibPath = path.join(Directory.current.path, '...');

in the constructor.

While there are many ways of fixing this, I think that the simplest one of them is to just allow the user to specify the dynamic library and when the user does this, it overrides the logic of the dynamic library in the code.

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

Successfully merging this pull request may close these issues.

1 participant