Hi. All links for this lib on thread is broken. if someone who has already downloaded this lib, could send it to me at rildo /at/ streamsolucoes.com
Regards
Hi. All links for this lib on thread is broken. if someone who has already downloaded this lib, could send it to me at rildo /at/ streamsolucoes.com
Regards
Hi @icefairy333
I'm having a few problems with the original version of this library. It seems to work OK the first time you use it, but if you exit out of an activity using it and go back it it often crashes when the file is loaded.
I've seen that the MuPDF source has been updated several times since you originally released the library. Is there any chance you could recompile with the latest version of the MuPDF sources?
Hi @icefairy333
I'm having a few problems with the original version of this library. It seems to work OK the first time you use it, but if you exit out of an activity using it and go back it it often crashes when the file is loaded.
I've seen that the MuPDF source has been updated several times since you originally released the library. Is there any chance you could recompile with the latest version of the MuPDF sources?
It seems to fail when I call the init sub. There are no errors when I step through, it just says "copy lib" in the log, and eventually crashes.
B4X:
Sub OpenPDF(filename As String)
pContent.RemoveAllViews
Dim pdfView As PDFViewer
pdfView.init
Activity.AddView(pdfView,0,0,-1,-1)
pdfView.getpdf(File.Combine(File.DirDefaultExternal & "/", filename))
End Sub
It seems to fail when I call the init sub. There are no errors when I step through, it just says "copy lib" in the log, and eventually crashes.
B4X:
Sub OpenPDF(filename As String)
pContent.RemoveAllViews
Dim pdfView As PDFViewer
pdfView.init
Activity.AddView(pdfView,0,0,-1,-1)
pdfView.getpdf(File.Combine(File.DirDefaultExternal & "/", filename))
End Sub
i tryed to run the example and i get this error message
Installing file.
PackageAdded: package:b4a.example
** Activity (main) Create, isFirst = true **
java.lang.UnsatisfiedLinkError: Cannot load library: load_library(linker.cpp:746): library "/data/data/b4a.example/files/libpdfview2.so" not found
at java.lang.Runtime.load(Runtime.java:340)
at java.lang.System.load(System.java:521)
at ice.pdfviewer.pdfviewerwrapper.init(pdfviewerwrapper.java:109)
at b4a.example.main._activity_create(main.java:357)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:702)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5319)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
can any body help??