is it possible to select text or click a link in pdf?
Closed this issue · 6 comments
+1
This would be a nice improvement.
this is needed 🍡
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.
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?
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.