sorry another ask,is possible to get the current page number?
thank you
Public Sub setRotation(PDF As PDFViewer, angle As Int) 'worked
Dim r As Reflector
r.Target = PDF
Return r.RunMethod2("setRotation", angle, "java.lang.int")
End Sub
Public Sub getRotation(PDF As PDFViewer) As Int 'worked
Dim r As Reflector
r.Target = PDF
Return r.RunMethod("getRotation")
Public Sub ZoomWidth(PDF As PDFViewer)
Dim r As Reflector
r.Target = PDF
r.RunMethod("zoomWidth")
End Sub
Public Sub ZoomFit(PDF As PDFViewer)
Dim r As Reflector
r.Target = PDF
r.RunMethod("zoomFit")
End Sub
End Sub
PDFCurrentPage = getCurrentPage(pdfv)
ZoomValue = ZoomValue-0.25
pnlContent.RemoveAllViews
pdfv.init
pnlContent.AddView(pdfv,0,0,-1,-1)
pdfv.getpdf(CurrentFolder&"/"&Filename)
If pdfv.isValid Then
pdfv.ScrollToPage(PDFCurrentPage)
pdfv.Zoom(ZoomValue)
end if
Public Sub PDFZoom(PDF As PDFViewer, zoomlevel As Float)
Dim r As Reflector
r.Target = PDF
Return r.RunMethod2("zoom", zoomlevel, "java.lang.float")
End Sub