Click here to Skip to main content
14,877,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make some changes in the source code of the MuPDF library. So I cant build my own app on the base of MuPDF viewers, such as mupdf-android-viewer. This way I cant modify low level codes.

I've cloned MuPDF from

I think now I should change some source files, and then compile or build it in a way that it could be used in Android Studio. For example building jar file.

I've really stuck in this. Please help.

What I have tried:

I've found no step by step tutorial to do this:

- Some of them refers to mupdf/platform/android/viewer folder. But this folder is not available in new versions of MuPDF source file.

- Some of them says that I should use ndk-build command and use generated files. It's possible, but what should I do after ndk-build? Should I use .so files? And how?

- Some of them uses MS Visual Studio to build mupdf/platform/win32/mupdf.sln project. But I think the output is not usable in Android Studio.
Updated 16-Mar-20 22:07pm

1 solution

Mohamad77 17-Mar-20 4:23am
In this link I think I should refer to this part: "5.Working on the MuPDF SDK". It just said that "you will need to check out the following git repositories". But It doesn't mentioned how could I modify the source and then compile it to jar file for example.
Richard MacCutchan 17-Mar-20 4:47am
That is the part you need to work out for yourself. Or contact the person who wrote the code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900