qijitech/android-mupdf


Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.qijitech:android-mupdf:'
	}
	dependencies {
		implementation("com.github.qijitech:android-mupdf:")
	}
	<dependency>
	    <groupId>com.github.qijitech</groupId>
	    <artifactId>android-mupdf</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.qijitech" % "android-mupdf" % ""
        
        

                            
    :dependencies [[com.github.qijitech/android-mupdf ""]]
        
        

Readme


Android-MuPDF

MuPDF usage for magazine reading.

MuPDF developer team: http://mupdf.com/

Original source repository: https://github.com/muennich/mupdf.git

Native libs compiled from original source commit: https://github.com/muennich/mupdf/commit/6bff94b4aa739eabede431320329ff5167e4884e

With small change:

diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c
index 5e04ff8..71b00ea 100644
--- a/platform/android/viewer/jni/mupdf.c
+++ b/platform/android/viewer/jni/mupdf.c
@@ -15,8 +15,8 @@
 #include "mupdf/fitz.h"
 #include "mupdf/pdf.h"

-#define JNI_FN(A) Java_com_artifex_mupdfdemo_ ## A
-#define PACKAGENAME "com/artifex/mupdfdemo"
+#define JNI_FN(A) Java_tech_qiji_android_mupdf_ ## A
+#define PACKAGENAME "tech/qiji/android/mupdf"

 #define LOG_TAG "libmupdf"
 #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)