Android-MuPDF icon indicating copy to clipboard operation
Android-MuPDF copied to clipboard

I'm using this library for my project. Where can I get the source code for this particular version of the MuPDF u r using.Please help me

Open saipavan1223 opened this issue 8 years ago • 11 comments

saipavan1223 avatar Aug 15 '16 18:08 saipavan1223

@joniks Hi joniks. I'm using your library because it displays two pages in landscape which exactly fits my requirement. But I'm facing seroius memory problems now. So can you please help me finding the source code for this version so that I can make changes in .c files and can build it again.

saipavan1223 avatar Aug 15 '16 18:08 saipavan1223

@joniks, In fact, I have built the new source code from the MuPDF website and when I try to replace the new .so files with your .so files MuPDF is not building. So I think you got my issue. Thanks

saipavan1223 avatar Aug 15 '16 18:08 saipavan1223

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

joniks avatar Aug 16 '16 07:08 joniks

@joniks Thank you for reply. Can you guide me how to download and setup this. It is confusing

saipavan1223 avatar Aug 16 '16 15:08 saipavan1223

Building info here: http://mupdf.com/docs/how-to-build-mupdf-for-android

joniks avatar Aug 16 '16 21:08 joniks

@joniks , I know how to build this but my question is after building the new version and when I replaced new .so files with the .so files in your library it's not working.

saipavan1223 avatar Aug 16 '16 21:08 saipavan1223

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 PACKAGENAME "com/artifex/mupdfdemo" +#define JNI_FN(A) Java_com_artifex_mupdflib_ ## A +#define PACKAGENAME "com/artifex/mupdflib"

#define LOG_TAG "libmupdf" #define LOGI(...) android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS)

joniks avatar Aug 16 '16 21:08 joniks

@joniks , thank u so much.

saipavan1223 avatar Aug 16 '16 21:08 saipavan1223

how can i copy text from pdf ?

wallyone avatar Aug 17 '16 08:08 wallyone

Text copying functionality purposely has been removed from this library.

joniks avatar Aug 17 '16 15:08 joniks

@joniks , Hi Joniks, I faced the x86 not supported crash. So could you be kind to provide me the jni source code? And I cloned the MuPdf project, there is no jni code inside for privacy reason I think.

smedia-dev avatar Jul 25 '18 05:07 smedia-dev