react-pdf-js icon indicating copy to clipboard operation
react-pdf-js copied to clipboard

is it possible to select text or click a link in pdf?

Open tigran000 opened this issue 7 years ago • 5 comments

tigran000 avatar Jul 14 '18 12:07 tigran000

+1

kennylbj avatar Oct 19 '18 07:10 kennylbj

This would be a nice improvement.

mikecousins avatar Nov 01 '18 21:11 mikecousins

this is needed 🍡

frontr-uk avatar Sep 06 '19 14:09 frontr-uk

Yeah one day we'll need to investigate how react-pdf handled this and port it over.

https://github.com/wojtekmaj/react-pdf/blob/master/src/Page/TextLayer.jsx

They have a TextLayer that is drawn over top I think. Any work/pulls on this would be greatly appreciated.

mikecousins avatar Sep 20 '19 16:09 mikecousins

Hi, work on selectable text has been done in the past here: https://bitbucket.org/ridethepony/react-pdf-js/commits/1b24f41dc763a29883d2c6a1e5fea7ff67a24a28?at=dev up to https://bitbucket.org/ridethepony/react-pdf-js/commits/2cc05868cb8e96ca594b1d9fae1c397cf01cca3d?at=dev This repo was originally forked from https://github.com/mikecousins/react-pdf-js to https://github.com/ridethepony/react-pdf-js and now moved to bitbucket. Maybe this helps?

bsimons avatar Nov 30 '20 15:11 bsimons

Due to trying to keep this one pretty minimal I think I'm going to pass on adding this for now. It will take quite a bit of code and there are some other libraries that do this well already. I want to try to keep this one super lightweight.

mikecousins avatar Sep 16 '22 05:09 mikecousins