flutter_pdf_render
flutter_pdf_render copied to clipboard
Add a way to select and copy text
It would be great if it would be possible to select and copy text from a pdf.
On iOS, the plugin uses CGPDF* low level classes in conjonction with Flutters Texture, I don't know if it's even possible to mimic copying with Texture
... Maybe @espresso3389 can answer
There're two major tasks for the issue:
- Actual text extraction from PDF page
- Android's PdfRenderer.Page lacks support for such non-rendering operation; we should use another library like pdfium
- For iOS/macOS and Web, their engine is enough to implement it
- Text selection interaction
- Just googling the things, I've found SelectableRegion class and it seems to be a perfect fit for the purpsose
So there seems only one blocker for the issue.
JUST A NOTE: #65 is a Flutter Web topic that tries to implement text extraction by own method
any solution to this ?
is there any way to achieve this