Hi, 

Iam new to android and trying to extract text from pdf file. 

I used Apache PdfBox for extracting text from pdf file. 

But Iam getting the following exception. 
I have given below the stack trace
 
 
06-05 10:51:49.933: D/dalvikvm(369): GC_EXTERNAL_ALLOC freed 49K, 53% free 
2549K/5379K, external 1625K/2137K, paused 77ms
06-05 10:51:50.201: D/dalvikvm(369): GC_EXTERNAL_ALLOC freed 1K, 53% free 
2548K/5379K, external 2988K/3732K, paused 58ms
06-05 10:51:55.492: E/dalvikvm(369): Could not find class 
'org.apache.pdfbox.pdfparser.PDFParser', referenced from method 
com.pdf.parser.TextToSpeechActivity$1.onClick
06-05 10:51:55.492: W/dalvikvm(369): VFY: unable to resolve new-instance 51 
(Lorg/apache/pdfbox/pdfparser/PDFParser;) in 
Lcom/pdf/parser/TextToSpeechActivity$1;
06-05 10:51:55.492: D/dalvikvm(369): VFY: replacing opcode 0x22 at 0x0018
06-05 10:51:55.492: D/dalvikvm(369): VFY: dead code 0x001a-0073 in 
Lcom/pdf/parser/TextToSpeechActivity$1;.onClick (Landroid/view/View;)V
06-05 10:51:55.862: I/TextToSpeech.java(369): initTts() successfully bound 
to service
06-05 10:52:01.803: D/AndroidRuntime(369): Shutting down VM
06-05 10:52:01.812: W/dalvikvm(369): threadid=1: thread exiting with 
uncaught exception (group=0x40015560)
06-05 10:52:01.822: E/AndroidRuntime(369): FATAL EXCEPTION: main
06-05 10:52:01.822: E/AndroidRuntime(369): java.lang.NoClassDefFoundError: 
org.apache.pdfbox.pdfparser.PDFParser
06-05 10:52:01.822: E/AndroidRuntime(369): at 
com.pdf.parser.TextToSpeechActivity$1.onClick(TextToSpeechActivity.java:64)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.view.View.performClick(View.java:2485)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.view.View$PerformClick.run(View.java:9080)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.os.Handler.handleCallback(Handler.java:587)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.os.Handler.dispatchMessage(Handler.java:92)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.os.Looper.loop(Looper.java:123)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
android.app.ActivityThread.main(ActivityThread.java:3683)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
java.lang.reflect.Method.invokeNative(Native Method)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
java.lang.reflect.Method.invoke(Method.java:507)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-05 10:52:01.822: E/AndroidRuntime(369): at 
dalvik.system.NativeStart.main(Native Method)
06-05 10:52:04.082: I/Process(369): Sending signal. PID: 369 SIG: 9 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to