mupdf

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

匿名 (未验证) 提交于 2019-12-03 01:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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

fatal error: fitz.h: No such file or directory in muPDF library

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I m trying to compile the muPDF lib in eclipse for android app since 3 days without any success I downloaded and configured the android-ndk, cygwin Im getting this still 15:25:36 **** Build of configuration Debug for project ChoosePDFActivity **** "E:\\android-ndk\\android-ndk-r9d\\ndk-build.cmd" all Android NDK: WARNING:E:/Workspace_SIL/ChoosePDFActivity//jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored for static libraries Android NDK: WARNING:E:/Workspace_SIL/ChoosePDFActivity//jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always

mupdf for android: ndk-build problem (error: redefinition of typedef…)

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following the necessary steps to have MuPDF for Android. MuPDF is built on my system, I am able to exploit it with C++, now trying with Android. All steps in the README successfully followed but when I get to step 10, that is when I have to do ndk-build , I get some errors: /home/pc/sviluppo/android-ndk-r6b/platforms/android-8/arch-arm/usr/include/stdint.h:53: error: redefinition of typedef 'uint32_t' /home/pc/sviluppo/mupdf-0.9/android/jni/../../thirdparty/jbig2dec/os_types.h:46: note: previous declaration of 'uint32_t' was here make:

QT加载muPDF静态库的问题和解决(导入C语言静态库,QT的运行时库设定)

断了今生、忘了曾经 提交于 2019-12-02 18:58:12
首先下载muPDF,找到mupdf-1.2-source.zip下载解压. 进入win32目录,打开mupdf工程(vs2008及以上会提示转换,转换后自动产生.sln工程) 默认情况下没有v8引擎,v8版工程编不过,可以忽略. 确保mupdf.exe生成成功,可以测试一下效果. 制作一个QT动态库dll实现一些功能,包含头文件fitz.h 导入库libmupdf.lib .一切完事后编译发现所有使用到的函数都报LNK2001: unresolved external symbol 链接错误:未解析的外部符号. 原因和解决办法如下: 因为mupdf使用纯C代码,编译产生的lib具有浓厚的C色彩,作为lib导出的函数修饰符仅仅只有前缀_. 如fz_new_context函数的导出为_fz_new_context.而我们用c++代码加载时,修饰后找的函数却是?fz_new_context@@YAPAUfz_context_s@@PAUfz_alloc_context_s@@PAUfz_locks_context_s@ @I @Z自然找不到. 让mupdf库修改他的导出自然是不可能了,只能在导入的时候做特别声明. 找到fitz.h 由于里面的函数太多,我们只找相关的函数(就是报无法解析的外部符号的函数)在前面加extern "C"让他按C方式修饰再找,就能找到了. 为了保持原代码的完整性

navigating to a specific page with the mupdf android library

拥有回忆 提交于 2019-12-02 00:33:09
How would I go about navigating to a specific page with the muPDF library? Or is there a way to make the library not remember which page I was last on in that pdf? Uri uri = Uri.parse(path); Intent intent = new Intent(MainActivity.getContext(), MuPDFActivity.class) intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); c.startActivity(intent); //c is context This is how i'm currently opening pdfs. You can add page index in Bundle into your intent, load that index in MuPDFActivity thereafter and call mDocView.setDisplayedViewIndex(your_index_from_bundle); That should do the job. Something

fatal error: fitz.h: No such file or directory in muPDF library

浪尽此生 提交于 2019-12-01 07:54:35
问题 I m trying to compile the muPDF lib in eclipse for android app since 3 days without any success I downloaded and configured the android-ndk, cygwin Im getting this still 15:25:36 **** Build of configuration Debug for project ChoosePDFActivity **** "E:\\android-ndk\\android-ndk-r9d\\ndk-build.cmd" all Android NDK: WARNING:E:/Workspace_SIL/ChoosePDFActivity//jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored for static libraries Android NDK: WARNING:E:/Workspace_SIL/ChoosePDFActivity//jni

MuPDF for Android: Option for fragment instead Activity

允我心安 提交于 2019-11-30 20:53:31
In my existing android app, Im using MuPDF, which i ported with help of this doc. Now when i want to open pdf files inside activity i use : Uri uri = Uri.parse(path); Intent intent = new Intent(this, MuPDFActivity.class); intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); startActivity(intent); which fires a new activity, My problem is: (1) how can I start Fragment to view pdf? (2) Does MuPDF supports Fragment that I can call under my currant Android-Tab-View? (3) Is there a Way Converting this activity into fragment? Currently i'm doing: public class DummySectionFragment extends

Proguard issue for mupdf library

≡放荡痞女 提交于 2019-11-30 18:43:11
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 8 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false

MuPDF Android Pdf fit to the screen

霸气de小男生 提交于 2019-11-30 10:18:50
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! 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 = (float)getWidth()/(float)v.getMeasuredWidth(); MIN_SCALE = (float)v.getMeasuredWidth()/(float)getWidth();

MuPDF for Android: Option for fragment instead Activity

纵饮孤独 提交于 2019-11-30 05:10:20
问题 In my existing android app, Im using MuPDF, which i ported with help of this doc. Now when i want to open pdf files inside activity i use : Uri uri = Uri.parse(path); Intent intent = new Intent(this, MuPDFActivity.class); intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); startActivity(intent); which fires a new activity, My problem is: (1) how can I start Fragment to view pdf? (2) Does MuPDF supports Fragment that I can call under my currant Android-Tab-View? (3) Is there a Way