document-viewer icon indicating copy to clipboard operation
document-viewer copied to clipboard

Feature request: Selecting, copying text

Open Bubu opened this issue 9 years ago • 8 comments

Hello, I really would like to select and copy text from the document opened in this app. I don't know how difficult this would be to implement into the current codebase. It seems like a really basic feature so maybe there is a reason why it's not there?

Bubu avatar Apr 22 '15 20:04 Bubu

Usually, I tend to say that feature requests for this app are hopeless at the current pace of development. But in this case, I can at least say that it should be somehow achievable because copying is a working feature of the MuPdf Android app (and libmupdf is at the core of Document Viewer's PDF, EPUB and XPS support).

Furthermore, keyword search is currently supported by Document Viewer and keywords are highlighted in a similar way as you would expect it to look like when selecting text.

tuxor1337 avatar Apr 22 '15 20:04 tuxor1337

Well support for pdf (and the other mupdf formats) would already be a huge improvement.

Bubu avatar Apr 22 '15 20:04 Bubu

I'd like to implement this feature but need some help.

I've found there is getPageText method, that is implemented for djvu. I've tried to use it, but found it didn't release resources properly. I've fixed it (169cbe629cc096c4236c17ae4a9dbf847d6c5326), and managed to get the text where the user presses (b80d45c7a8a774b6ca5f0ab48b23eebd1f75e7b6) but don't know where to go frome there.

Is what I did okay? and what should I do now?

abderrahim avatar Jul 15 '15 12:07 abderrahim

Ping on that - would be really good to have it.

Nowaker avatar Dec 11 '16 01:12 Nowaker

This is the single biggest issue with the app right now. It'd be really awesome if this feature was implemented

rituraj22 avatar Mar 07 '18 13:03 rituraj22

Any update?

agguser avatar Oct 19 '18 09:10 agguser

this would be a very nice feature, I can't find any opensource pdf-reader supporting this

ristein avatar Dec 05 '20 12:12 ristein

MuPDF (Lightweight document viewer) - https://f-droid.org/packages/com.artifex.mupdfdemo

Though it's officially deprecated and have security issues.

ildar avatar Dec 05 '20 18:12 ildar