Jānis Kepulis

Results 9 comments of Jānis Kepulis

Just put extra parameter **intent.putExtra("horizontalscrolling", false);** ``` Intent intent = new Intent(this, com.artifex.mupdflib.MuPDFActivity.class); intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); //if document protected with password intent.putExtra("password", "encrypted PDF password"); //if you need highlight link boxes...

https://github.com/joniks/Android-MuPDF/blob/master/library/src/com/artifex/mupdflib/MuPDFCore.java on line 495 contain function: public synchronized LinkInfo[] getPageLinks(int page) {

Can you share pdf file sample with embedded link for testing?

You need specific embedded link url (html://imagegallery-1350/ or html://scrollingtext-1351/) scheme parser and pdf overlay functionality. Here i found libreliodev team sample project with required functionality: https://github.com/libreliodev/android/tree/master/main/src/main/java/com/artifex/mupdfdemo

Project .so files builded from: http://git.ghostscript.com/?p=mupdf.git;a=tree;h=a0a9ce485579352ce9c3c4568c07e56b7029a8c8;hb=a0a9ce485579352ce9c3c4568c07e56b7029a8c8

Small shange before building required: diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c index 5e04ff8..5d8b7d3 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...