I am using Pdfviewer control.I would like to know how to get "Current pageNo" when changing the page.I have used below code but its not working...Please check below code and advise how to solve this problem...
B4X:
Sub LoadPdfVile(StrFile As String)
pdfv.init
Panel1.AddView(pdfv,5,1,Panel1.Width - 10,Panel1.Height -5)
pdfv.getpdf(StrFile)
If pdfv.isValid Then
pdfv.scrollToPage(0)
pdfv.zoom(1.0)
Else
Msgbox("Error pdf file!","Error")
Activity.Finish
Return
End If
End Sub
Sub pdfv_onPageChanged(page As Int, pageCount As Int)
Activity.Title = page & " - " & pageCount
End Sub