HI,

I want to get the pdf text content by use pdfbox.jar (the pdfbox version
1.0.0 : pdfbox.jar) in android app, but
failed to get the message:

E/AndroidRuntime( 1164): java.lang.VerifyError: com.android.pdfbox.pdfbox
E/AndroidRuntime( 1164):     at java.lang.Class.newInstanceImpl(Native
Method)
E/AndroidRuntime( 1164):     at java.lang.Class.newInstance(Class.java:1472)
E/AndroidRuntime( 1164):     at
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
E/AndroidRuntime( 1164):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
E/AndroidRuntime( 1164):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
E/AndroidRuntime( 1164):     at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime( 1164):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 1164):     at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1164):     at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1164):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 1164):     at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1164):     at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1164):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:79

but this works fine on my common java app(non-android platform), is there
any different on VMs of android or some permission setting? I am a new
developers , can someone give some suggestion and help

This is part of my code in android app:

  InputStream input = null;
  File f = new File( "pdfFile.pdf" );
  input = new FileInputStream(f);
  PDDocument document = PDDocument.load( input );

  pdfFile.pdf is in the dir: ~/src/com/android/pdfbox/pdfFile.pdf

-- 
Best regards.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to