I have an Pdf file with four page.I would like to scroll last page when I open pdf file in "pdfviewer".I have tried below code but its not working.Please check below code and attached file for your reference.
B4X:
Sub LoadPdfVile(StrFile As String)
If pdfv.IsInitialized Then pdfv.RemoveView
pdfv.init
Panel1.AddView(pdfv,5,1,Panel1.Width - 10,Panel1.Height -5)
pdfv.getpdf(StrFile)
If pdfv.isValid Then
pdfv.scrollToPage(4)
pdfv.zoom(1.0)
Else
Msgbox("Error pdf file!","Error")
Activity.Finish
Return
End If
End Sub