2012-04-23 40 views
3

我一直在努力MuPdf庫長,終於我可以在我的設備上安裝,創建libmupdf.so文件和Cygwin和Android的NDK的工作之後。 但我仍然面臨着一個問題...應用程序安裝在設備上,我收到各種pdf的列表,我已經高清我的設備上,我點擊任何人,而不是渲染和顯示在查看器上,它試圖呈現,然後再次得到pdf的列表,沒有得到我的PDF查看。使用Mupdf庫pdfrenderer不工作

尹恩惠的想法,怎麼回事錯了....

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)=([email protected],-1,0,-1,0) 
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0) 
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0) 
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-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)=([email protected],-1,0,-1,0) 
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0) 
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0) 
04-23 14:45:37.971: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-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] 
+0

有ü使用任何PDFRender類... ?????? – Wolverine 2012-04-23 09:23:14

回答

0

你在模擬器上運行它.. ??? 如果是,那麼發佈logcat的輸出... &你做使用muPdf因爲只有muPdf不工作來渲染PDF烏爾自己的應用程序..

看到這個應用程式,這些都是免費的..

Droidreade

APV

嘗試這些

+0

no @Aze ...我沒有在模擬器上運行它。是的,我剛剛使用Mupdf源和第三方庫,編譯和構建我自己的文件.. – dave21 2012-04-23 09:25:32

+0

然後你需要使用PDFRender類... 因爲這兩個應用程序是免費的&最好的... 你可以下載它的源代碼編譯和運行它... 在這兩者的APV最好.. 它有一個腳本文件夾,只需運行該腳本的所有第三方將自動複製,然後你剛剛要編譯&然後運行應用程序..... – Wolverine 2012-04-23 09:30:47

+0

兄弟我很早就嘗試過APV,它對我來說工作的很好,因爲它對大量的PDF和密碼也有很好的保護,但是當我測試一個只有12頁大量圖形的PDF時,APV不是能夠渲染它,我很驚訝.. – dave21 2012-04-23 09:36:23