Android Question Load PDF pages in CustomListView - zoom enabled

db0070

Active Member
Licensed User
Longtime User
How can I show a multi page pdf in a CustomlistView and set each page so that the user is able to zoom the image?
I also tried using Webview but it does not work:-
B4X:
dim image as imageview
Private CLV1 As CustomListView
For i = 0 To pdf.PageCount-1        
        Dim p As B4XView = xui.CreatePanel("")
        p.SetLayoutAnimated(0, 0, 0, CLV1.AsView.Width,CLV1.AsView.Height)
        p.LoadLayout("Card1")
        image.Bitmap = pdf.renderPageforDisplay(i)
        WebView1.SetBackgroundImage(image.Bitmap)
        CLV1.Add(p,WebView1)
next
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…