Hi All, I found this code https://www.b4x.com/android/forum/threads/pdf-support.119992/#content written by @Semen Matusovskiy I tried and everything works fine. However, I would like to add the "goToPage" method to scroll the pdf to a certain page as per the documentation...
The answer was added in the same post by Erel later
B4X:
Public Sub GetPageCount As Int
Return Document.RunMethod("pageCount", Null).AsNumber
End Sub
'PageIndex is 0 based.
Public Sub GoToPage(PageIndex As Int)
Dim page As NativeObject = Document.RunMethod("pageAtIndex:", Array(PageIndex))
PDFView1.As(NativeObject).RunMethod("goToPage:", Array(page))
End Sub