[free lib]b4aPDFViewer by Icefairy333

omidaghakhani1368

Well-Known Member
Licensed User
Longtime User
Hi.
get error library when device rotation.
How use pdfviewer library in device rotation without get error?
 

rildomoraes

Member
Licensed User
Longtime User
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
 

andrewj

Active Member
Licensed User
Longtime User
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?

Thanks
Andrew
 

icefairy333

Active Member
Licensed User
Longtime User
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?

Thanks
Andrew
:)I've losted the source,maybe you can do it yourself with jd-gui.
 

BarryW

Active Member
Licensed User
Longtime User
Can you provide a pdf annotator library. i would like to pay.
 

Brian Robinson

Active Member
Licensed User
Longtime User
I am getting an error when using this Lib.

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

Any ideas?
 

icefairy333

Active Member
Licensed User
Longtime User
I am getting an error when using this Lib.

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

Any ideas?
maybe your cpu is not support.
 

Brian Robinson

Active Member
Licensed User
Longtime User
Hi, Thanks for replying.

I have an LG G3 which uses the Krait400 CPU. Do you think this is the problem?

Cheers
Brian
 

BarryW

Active Member
Licensed User
Longtime User
Is There events like

On_page_end 'when the user scroll the pdf to the end?
Page_change(page as int) 'event for changing pdf page?

And also if possible to add pinch gesture to implent zoom in and zoom out... Tnx
 

jchal

Active Member
Licensed User
Longtime User
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??
 

DonManfred

Expert
Licensed User
Longtime User
Top