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

Using the pdfium library for pdf rendering #7

Open
petrovichtim opened this issue Jun 5, 2021 · 3 comments
Open

Using the pdfium library for pdf rendering #7

petrovichtim opened this issue Jun 5, 2021 · 3 comments

Comments

@petrovichtim
Copy link

Please tell me how you can rewrite this library for use with a pdfium-based renderer ?

@davidkraus
Copy link
Contributor

pdfium is a C++ lib so you would need JNI to call it from java/kotlin. We have not looked at that in great detail so there might be code you can use from AOSP or existing libraries.

Just out of curiosity - why do you want to do this in the first place? Pdfium is available on all devices running at least Android 5, thats currently 94.1 % of all android devices (according to google).

@petrovichtim
Copy link
Author

We need to make the functionality of text selection and click on links to a section inside the document or to websites

@davidkraus
Copy link
Contributor

ok unfortunately this is out of scope of this library - it just renders an image of the pdf (with zoom/memory optimization).
The Android built in Pdfium java wrapper used in this lib can only render images so yeah you would need your own pdfium build. If you want a drop in solution maybe have a look at pspdfkit.

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

No branches or pull requests

2 participants