使用 Mupdf 库为 pdf 渲染器不起作用



我已经在MuPdf库上工作了很长时间,终于能够在创建 libmupdf.so 文件并在Cygwin和android-ndk上工作后,将它安装在我的设备上。但我仍然面临一个问题...应用程序安装在设备上,我正在获得我已经在我的设备上hv的各种pdf的列表,我单击任何人,但它没有渲染和显示在查看器上,而是尝试渲染,然后我再次获得pdf的列表,而没有查看我的pdf。

啧,怎么了...

04-23 14:44:36.741: D/dalvikvm(11539): Debugger has detached; object registry had 1 entries
04-23 14:44:47.411: I/System.out(11539): Trying to open /mnt/sdcard/Download/BecomeAnXcoder.pdf
04-23 14:44:47.411: D/dalvikvm(11539): Trying to load lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8
04-23 14:44:47.411: D/dalvikvm(11539): Added shared lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8
04-23 14:44:47.411: D/dalvikvm(11539): No JNI_OnLoad found in /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8, skipping init
04-23 14:44:47.421: E/libmupdf(11539): Opening document...
04-23 14:44:47.421: E/libmupdf(11539): Done!
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:44:47.621: E/libmupdf(11539): Goto page 0...
04-23 14:44:47.741: E/libmupdf(11539): PageWidth=1191
04-23 14:44:47.741: E/libmupdf(11539): PageHeight=1684
04-23 14:44:47.741: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 133K, 48% free 2864K/5447K, external 0K/0K, paused 68ms
04-23 14:44:47.761: E/libmupdf(11539): Goto page 1...
04-23 14:44:47.871: E/libmupdf(11539): PageWidth=1191
04-23 14:44:47.871: E/libmupdf(11539): PageHeight=1684
04-23 14:44:47.871: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 17K, 48% free 2849K/5447K, external 62K/574K, paused 96ms
04-23 14:44:47.901: E/libmupdf(11539): Goto page 0...
04-23 14:44:48.021: E/libmupdf(11539): PageWidth=1191
04-23 14:44:48.021: E/libmupdf(11539): PageHeight=1684
04-23 14:44:48.021: I/libmupdf(11539): In native method
04-23 14:44:48.021: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 9K, 48% free 2852K/5447K, external 627K/1139K, paused 57ms
04-23 14:44:48.021: I/libmupdf(11539): Checking format
04-23 14:44:48.021: I/libmupdf(11539): locking pixels
04-23 14:44:48.021: E/libmupdf(11539): Rendering page=320x452 patch=[0,0,320,452]
04-23 14:44:50.951: W/KeyCharacterMap(11604): Can't open keycharmap file
04-23 14:44:50.951: W/KeyCharacterMap(11604): Error loading keycharmap file '/system/usr/keychars/cy8c-touchscreen.kcm.bin'. hw.keyboards.65537.devname='cy8c-touchscreen'
04-23 14:44:50.951: I/KeyCharacterMap(11604): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
04-23 14:45:28.941: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 59K, 49% free 2765K/5379K, external 0K/0K, paused 54ms
04-23 14:45:37.901: I/System.out(11675): Trying to open /mnt/sdcard/Download/1430236051iOS5SDK.pdf
04-23 14:45:37.901: D/dalvikvm(11675): Trying to load lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240
04-23 14:45:37.911: D/dalvikvm(11675): Added shared lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240
04-23 14:45:37.911: D/dalvikvm(11675): No JNI_OnLoad found in /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240, skipping init
04-23 14:45:37.911: E/libmupdf(11675): Opening document...
04-23 14:45:37.941: E/libmupdf(11675): Done!
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:45:37.971: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:45:38.581: E/libmupdf(11675): Goto page 0...
04-23 14:45:38.581: E/libmupdf(11675): PageWidth=1230
04-23 14:45:38.601: E/libmupdf(11675): PageHeight=1514
04-23 14:45:38.601: E/libmupdf(11675): Goto page 1...
04-23 14:45:38.781: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 59K, 47% free 2851K/5379K, external 91K/541K, paused 92ms
04-23 14:45:38.881: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 5K, 48% free 2850K/5379K, external 583K/1095K, paused 86ms
04-23 14:45:38.991: E/libmupdf(11675): PageWidth=1082
04-23 14:45:38.991: E/libmupdf(11675): PageHeight=1332
04-23 14:45:38.991: E/libmupdf(11675): Goto page 0...
04-23 14:45:38.991: E/libmupdf(11675): PageWidth=1230
04-23 14:45:39.001: E/libmupdf(11675): PageHeight=1514
04-23 14:45:39.001: I/libmupdf(11675): In native method
04-23 14:45:39.001: I/libmupdf(11675): Checking format
04-23 14:45:39.001: I/libmupdf(11675): locking pixels
04-23 14:45:39.001: E/libmupdf(11675): Rendering page=320x393 patch=[0,0,320,393]
04-23 14:45:39.801: E/libmupdf(11675): Rendered
04-23 14:45:39.801: I/libmupdf(11675): In native method
04-23 14:45:39.801: I/libmupdf(11675): Checking format
04-23 14:45:39.801: I/libmupdf(11675): locking pixels
04-23 14:45:39.801: E/libmupdf(11675): Rendering page=320x455 patch=[0,0,320,455]
04-23 14:45:40.201: E/libmupdf(11675): Rendered
04-23 14:45:40.201: E/libmupdf(11675): Goto page 1...
04-23 14:45:40.201: E/libmupdf(11675): PageWidth=1082
04-23 14:45:40.231: E/libmupdf(11675): PageHeight=1332
04-23 14:45:40.231: I/libmupdf(11675): In native method
04-23 14:45:40.231: I/libmupdf(11675): Checking format
04-23 14:45:40.231: I/libmupdf(11675): locking pixels
04-23 14:45:40.231: E/libmupdf(11675): Rendering page=320x393 patch=[0,0,320,393]

您是否在模拟器上运行了它..???如果是,则发布日志猫输出...你是否使用muPdf制作了自己的应用程序,因为只有muPdf无法渲染PDF。

看到这个应用程序这些是免费的..

Droidreade

APV

试试这些

相关内容

  • 没有找到相关文章

最新更新