Hi, Is there anything at all similar to this library https://www.b4x.com/android/forum/threads/pdfium-pdfview2.102756/#content for B4i? I know I can open PDFs using a WebView, and that I can build a viewer of sorts using the PDFDocument object. However, using the WebView I can't get lateral...
Private Sub goToPage(page_go As Int)
Dim nativeObjectMe As NativeObject
nativeObjectMe = Me
nativeObjectMe.RunMethod("goToPage", Array(page_go))
End Sub
But return the follow error:
Method not found: goToPage, target: <b4i_main: (null)>
Private Sub goToPage(page_go As Int)
nativeObjectPDFView.RunMethod("goToPage:", Array(nativeObjectPDFDocument.RunMethod("pageAtIndex:", Array(page_go))))
End Sub
To find out how many pages are in the document:
B4X:
Private Sub pagine_totale As Int
Dim pagine_tot As Object
pagine_tot = nativeObjectPDFDocument.GetField("pageCount")
Return pagine_tot
End Sub
Hi, I`m now in the journey of trying to do PDF viewing, etc. I`m completely new to the 'nativeobject' theing....
I`m trying to get current page, I see in the iOS documentation it shows "@property(nonatomic, readonly, nullable) PDFPage *currentPage;"
How do I translate that to B4i code, I`m assuming its similar to the above:
Hi, I`m now in the journey of trying to do PDF viewing, etc. I`m completely new to the 'nativeobject' theing....
I`m trying to get current page, I see in the iOS documentation it shows "@property(nonatomic, readonly, nullable) PDFPage *currentPage;"
How do I translate that to B4i code, I`m assuming its similar to the above:
Dim current_page As Object = nativeObjectPDFDocument.RunMethod("indexForPage:",Array(nativeObjectPDFView.RunMethod("currentPage",Null)))
Log($"Page: ${current_page}"$)