iOS Question jump to particular page in pdf

Status
Not open for further replies.

Kadandale Ganapathy Bhat

Member
Licensed User
I am lucky to be succussful user of pdfview class by Erel

please guide me how to go a particular page?
 

MarcoRome

Expert
Licensed User
Longtime User
See
 
Upvote 0

jkhazraji

Active Member
Licensed User
Longtime User
I am lucky to be succussful user of pdfview class by Erel

please guide me how to go a particular page?
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
:
 
Upvote 0
Status
Not open for further replies.
Top