As stated, there is a project to read the PDF file content is specified in a few pages, you need to how to read the PDF?
Download the Vndroid and PDFView compile, but when running on the emulator, are in the PDF file when loading quit.
PDFView errors are: loading 1.pdf in page mode CropBox. When a PDF file is loaded on the wrong.
Are there any simple and easy to use third-party libraries? Android still just learning to understand this.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
http://download.csdn.net/detail/a394268045/6543123
Reply:
I'm just here to download a source: http://my.oschina.net/gal/blog/141419
Using vudroid library, but compiled to run in the simulator is also being given to the operation:
PdfPage vuPage = d.getPage (1);
Error Log:
11-12 20:39:19.444: D / dalvikvm (962): Trying to load lib / data/app-lib/com.fsproject.pdftest-1/libvudroid.so 0x416ecc88
11-12 20:39:19.504: D / dalvikvm (962): Added shared lib / data/app-lib/com.fsproject.pdftest-1/libvudroid.so 0x416ecc88
11-12 20:39:19.504: D / PdfDroid (962): initializing PdfRender JNI library based on MuPDF
11-12 20:39:19.504: I / MainActivity (962): Open document ...
11-12 20:39:19.714: D / PdfDroid (962): PdfDocument.nativeOpen (): return handle = 0x2a1ce220
11-12 20:39:19.755: I / MainActivity (962): Page counts: 48
11-12 20:39:19.755: I / MainActivity (962): get page 1 ...
11-12 20:39:19.784: D / PdfDroid (962): Exception 'java / lang / RuntimeException', Message: 'error loading page'
11-12 20:39:19.784: D / PdfDroid (962): PdfPage.nativeOpenPage (): return handle = 0x2a1e25d0
11-12 20:39:19.784: D / AndroidRuntime (962): Shutting down VM
11-12 20:39:19.794: W / dalvikvm (962): threadid = 1: thread exiting with uncaught exception (group = 0x41465700)
11-12 20:39:19.814: E / AndroidRuntime (962): FATAL EXCEPTION: main
11-12 20:39:19.814: E / AndroidRuntime (962): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.fsproject.pdftest / com.fsproject.pdftest.MainActivity}: java.lang.RuntimeException: error loading page
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread.performLaunchActivity (ActivityThread.java: 2211)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java: 2261)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread.access $ 600 (ActivityThread.java: 141)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread $ H.handleMessage (ActivityThread.java: 1256)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.os.Handler.dispatchMessage (Handler.java: 99)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.os.Looper.loop (Looper.java: 137)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread.main (ActivityThread.java: 5103)
11-12 20:39:19.814: E / AndroidRuntime (962): at java.lang.reflect.Method.invokeNative (Native Method)
11-12 20:39:19.814: E / AndroidRuntime (962): at java.lang.reflect.Method.invoke (Method.java: 525)
11-12 20:39:19.814: E / AndroidRuntime (962): at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java: 737)
11-12 20:39:19.814: E / AndroidRuntime (962): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java: 553)
11-12 20:39:19.814: E / AndroidRuntime (962): at dalvik.system.NativeStart.main (Native Method)
11-12 20:39:19.814: E / AndroidRuntime (962): Caused by: java.lang.RuntimeException: error loading page
11-12 20:39:19.814: E / AndroidRuntime (962): at org.vudroid.pdfdroid.codec.PdfPage.open (Native Method)
11-12 20:39:19.814: E / AndroidRuntime (962): at org.vudroid.pdfdroid.codec.PdfPage.createPage (PdfPage.java: 53)
11-12 20:39:19.814: E / AndroidRuntime (962): at org.vudroid.pdfdroid.codec.PdfDocument.getPage (PdfDocument.java: 20)
11-12 20:39:19.814: E / AndroidRuntime (962): at com.fsproject.pdftest.MainActivity.onCreate (MainActivity.java: 39)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.Activity.performCreate (Activity.java: 5133)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java: 1087)
11-12 20:39:19.814: E / AndroidRuntime (962): at android.app.ActivityThread.performLaunchActivity (ActivityThread.java: 2175)
11-12 20:39:19.814: E / AndroidRuntime (962): ... 11 more
Reply:
Thank you, Thank you, the simulator can be opened.
But there is a problem: not only open a small file picture, the big picture of something there to die (384K, 48 ้กต)
11-12 21:23:51.525: I / Choreographer (1284):!. Skipped 84 frames The application may be doing too much work on its main thread
11-12 21:24:17.465: I / Choreographer (1284):!. Skipped 113 frames The application may be doing too much work on its main thread
11-12 21:24:29.306: D / dalvikvm (1284): GC_FOR_ALLOC freed 85K, 30% free 3823K/5388K, paused 141ms, total 146ms
11-12 21:24:29.394: I / Choreographer (1284): Skipped 47 frames The application may be doing too much work on its main thread
!.11-12 21:24:29.644: D / dalvikvm (1284): GC_FOR_ALLOC freed 542K, 32% free 3701K/5388K, paused 44ms, total 45ms
11-12 21:24:29.944: D / dalvikvm (1284): GC_FOR_ALLOC freed 1K, 24% free 4122K/5388K, paused 59ms, total 60ms
11-12 21:24:32.324: I / Choreographer (1284): Skipped 34 frames The application may be doing too much work on its main thread
!.11-12 21:24:32.504: I / System.out (1284): Multi touch zoom is not available: java.lang.ClassNotFoundException: org.vudroid.core.multitouch.MultiTouchZoomImpl
11-12 21:24:32.634: D / PdfDroid (1284): PdfDocument.nativeOpen (): return handle = 0x2a2b2e18
11-12 21:24:32.796: D / dalvikvm (1284): GC_FOR_ALLOC freed 846K, 31% free 3758K/5388K, paused 42ms, total 52ms
11-12 21:24:33.244: D / PdfDroid (1284): Exception 'java / lang / RuntimeException', Message: 'error loading page'
11-12 21:24:33.274: D / PdfDroid (1284): PdfPage.nativeOpenPage (): return handle = 0x2a24b518
11-12 21:24:33.274: D / AndroidRuntime (1284): Shutting down VM
11-12 21:24:33.274: W / dalvikvm (1284): threadid = 1: thread exiting with uncaught exception (group = 0x41465700)
11-12 21:24:33.324: E / AndroidRuntime (1284): FATAL EXCEPTION: main
11-12 21:24:33.324: E / AndroidRuntime (1284): java.lang.RuntimeException: error loading page
11-12 21:24:33.324: E / AndroidRuntime (1284): at org.vudroid.pdfdroid.codec.PdfPage.open (Native Method)
11-12 21:24:33.324: E / AndroidRuntime (1284): at org.vudroid.pdfdroid.codec.PdfPage.createPage (PdfPage.java: 54)
11-12 21:24:33.324: E / AndroidRuntime (1284): at org.vudroid.pdfdroid.codec.PdfDocument.getPage (PdfDocument.java: 18)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.poqop.document.DecodeServiceBase.getPage (DecodeServiceBase.java: 172)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.poqop.document.DecodeServiceBase.getEffectivePagesWidth (DecodeServiceBase.java: 198)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.poqop.document.DocumentView.init (DocumentView.java: 67)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.poqop.document.DocumentView.access $ 2 (DocumentView.java: 63)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.poqop.document.DocumentView $ 3.run (DocumentView.java: 119)
11-12 21:24:33.324: E / AndroidRuntime (1284): at android.os.Handler.handleCallback (Handler.java: 730)
11-12 21:24:33.324: E / AndroidRuntime (1284): at android.os.Handler.dispatchMessage (Handler.java: 92)
11-12 21:24:33.324: E / AndroidRuntime (1284): at android.os.Looper.loop (Looper.java: 137)
11-12 21:24:33.324: E / AndroidRuntime (1284): at android.app.ActivityThread.main (ActivityThread.java: 5103)
11-12 21:24:33.324: E / AndroidRuntime (1284): at java.lang.reflect.Method.invokeNative (Native Method)
11-12 21:24:33.324: E / AndroidRuntime (1284): at java.lang.reflect.Method.invoke (Method.java: 525)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java: 737)
11-12 21:24:33.324: E / AndroidRuntime (1284): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java: 553)
11-12 21:24:33.324: E / AndroidRuntime (1284): at dalvik.system.NativeStart.main (Native Method)
No comments:
Post a Comment