I'm trying to convert WebView's text content to PDF. Using the code below.
PdfDocument.Page page = document.StartPage(new PdfDocument.PageInfo.Builder(webpage.Width, webpage.Height, 1).Create());
webpage.Draw(page.Canvas);
PDF is properly generated but I can't select text from that PDF. Its like WebView content but converted into an image.
But if I try to print same WebView from the print menu and save it as PDF text selection is working and size of the pdf is smaller.
So how can I create PDF from WebView where text is also selectable.
Eg. of text selection.