Hi, i need to convert a webview into image pdf and put it into a Pdf A4 page, i try to create it with this cose but have this result....
How i can solve it and resize the image into the rectangle? Or what is the correct mode to do it?
Thank you
How i can solve it and resize the image into the rectangle? Or what is the correct mode to do it?
Thank you
B4X:
Dim pdf As PdfDocument
pdf.Initialize
pdf.StartPage(595, 842) 'A4 size
Dim Bitmap2 As Bitmap=WebViewProcedimento.CaptureBitmap
Dim DestRect2 As Rect
DestRect2.Initialize(15dip, 15dip, 250dip, 300dip)
pdf.Canvas.DrawBitmap(Bitmap2, Null, DestRect2) 'draws the bitmap to the destination rectangle.
pdf.FinishPage