Android Question Canvas on PDFView

Douwe Siegersma

Member
Licensed User
Hello,

I'm using PDFView2 (PDFium) to load and show a PDF file.
I want to draw lines on it by using a canvas but this doesn't work.

B4X:
    Canvas1.Initialize(PDFView1)
    C.DrawLine(100,100,100,500,Colors.Red,5)
    Activity.Invalidate
 

DonManfred

Expert
Licensed User
Longtime User
PDFView2 is not a view you can use on a Canvas.

You can export any page to an Bitmap and draw this Bitmap on a canvas and then draw lines on this.
 
Upvote 0
Top