mupdf

Proguard issue for mupdf library

雨燕双飞 提交于 2019-11-30 03:18:30
问题 My application is running well until I'm trying to build the release version. I got the following error message: java.lang.NoSuchFieldError: no field with name='globals' signature='J' in class Lcom/artifex/mupdfdemo/MuPDFCore; Apparently the problem is in my mupdf library. I built this library to an aar file without using proguard. Here is my build.gradle for mupdf library: apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion "19.0.0" defaultConfig { minSdkVersion

Android mupdf java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “atof”

▼魔方 西西 提交于 2019-11-29 17:57:45
I am using mupdf to open a pdf file in my android app.The app crashes with this error. java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libmupdf_java.so"... This is my java code for viewing the pdf file. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RelativeLayout layout = (RelativeLayout) findViewById(R.id.main_layout); MuPDFCore core = null; try { core = new MuPDFCore(this,"/storage/emulated/0/Download

Compiling muPDF lib in Eclipse “cannot unlink `NUL': Invalid argument Android NDK” Error

﹥>﹥吖頭↗ 提交于 2019-11-29 15:39:14
I'm trying to compile the muPDF lib in Eclipse on Windows 7. I'm following these steps . On this step Build the native code libraries: ~/src/mupdf/platform/android $ ndk-build I'm getting this error. Qadir Hussain@GENETECH042 ~/mupdf/platform/android (master) $ ndk-build "C:/Program Files (x86)/Git/bin/rm.exe": cannot unlink `NUL': Invalid argument Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored fo r static libraries 0 [main] rm 4244 stdio_init: couldn't make stderr distinct from stdout 0 [main] rm 2876 stdio_init: couldn't make stderr distinct from stdout 0 [main

MuPDF Android Pdf fit to the screen

倾然丶 夕夏残阳落幕 提交于 2019-11-29 15:22:30
问题 I succesfully installed MuPDF for one of my Android Apps. But the problems is, while rendering I cannot fit the PDF to the screen. Can anybody please suggest me how to achieve this. Thanks! 回答1: Edit the measureView method in ReaderView.java to become. private void measureView(View v) { // See what size the view wants to be v.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED); // Work out a scale that will fit it to this view float scale; if (getWidth()>getHeight()) { scale =

error in integration of mupdf library

我是研究僧i 提交于 2019-11-29 10:46:14
I am working on a project in which i have to deal with pdf view. I am trying to integrate mupdf library in my project but getting error as mentioned below. I have followed all steps mentioned in readme document. please help me to solve this error. Compile thumb : mupdf <= mupdf.c jni/mupdf.c:10:18: fatal error: fitz.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs-debug/mupdf/mupdf.o] Error 1 My Android.mk file LOCAL_PATH := $(call my-dir) TOP_LOCAL_PATH := $(LOCAL_PATH) MUPDF_ROOT := $(call my-dir) include $(TOP_LOCAL_PATH)/Core.mk include $(TOP_LOCAL

Develop an ebook reader on iPhone/iPad using MuPDF library

不羁的心 提交于 2019-11-28 19:58:41
Can I develop an ebook reader on iphone/ipad using MuPDF library? Do you have any good idea? Please help me with some good tutorials. Sorry for the late answer but it could help people a day or another. As I had to integrate the MuPDF library into one of my (Swift) project, I generated the static fat libraries and integrate them into Xcode. Here you go with a step-by-step quick tutorial: How to build the static fat library: git clone --recursive git://git.ghostscript.com/mupdf.git Go to mupdf/platform/ios Open MuPDF.xcodeproj with Xcode. Configure the scheme of the MuPDF target to Release .

Replace all font glyphs in a PDF by converting them to outline shapes

不想你离开。 提交于 2019-11-28 18:52:12
I am looking for a way to 'outline' all text/fonts in a PDF file, i.e. convert them to curves. I would prefer to do this without having to convert the PDF to PostScript and back. Also, I would like to use free lightweight cross-platform tools that can be automated from the command line, such as Ghostscript or MuPDF. Yes, you can use Ghostscript to achieve what you want. I. For Ghostscript versions up to 9.14 You need to go through 2 steps: Convert the PDF to a PostScript file, but use the side effect of a relatively unknown parameter: it is called -dNOCACHE . This will convert all used fonts

Android mupdf java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “atof”

非 Y 不嫁゛ 提交于 2019-11-28 12:30:01
问题 I am using mupdf to open a pdf file in my android app.The app crashes with this error. java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libmupdf_java.so"... This is my java code for viewing the pdf file. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RelativeLayout layout = (RelativeLayout) findViewById(R.id

Compiling muPDF lib in Eclipse “cannot unlink `NUL': Invalid argument Android NDK” Error

。_饼干妹妹 提交于 2019-11-28 10:01:42
问题 I'm trying to compile the muPDF lib in Eclipse on Windows 7. I'm following these steps. On this step Build the native code libraries: ~/src/mupdf/platform/android $ ndk-build I'm getting this error. Qadir Hussain@GENETECH042 ~/mupdf/platform/android (master) $ ndk-build "C:/Program Files (x86)/Git/bin/rm.exe": cannot unlink `NUL': Invalid argument Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored fo r static libraries 0 [main] rm 4244 stdio_init: couldn't make

error in integration of mupdf library

走远了吗. 提交于 2019-11-28 03:58:10
问题 I am working on a project in which i have to deal with pdf view. I am trying to integrate mupdf library in my project but getting error as mentioned below. I have followed all steps mentioned in readme document. please help me to solve this error. Compile thumb : mupdf <= mupdf.c jni/mupdf.c:10:18: fatal error: fitz.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs-debug/mupdf/mupdf.o] Error 1 My Android.mk file LOCAL_PATH := $(call my-dir) TOP_LOCAL_PATH