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

Add IDs to span elements created by TextLayerItem component

Open jedhelmers opened this issue 5 years ago • 2 comments

  1. Adding an ID to the pdf's spans. Something to grab onto for annotation purposes.

jedhelmers avatar Mar 29 '20 19:03 jedhelmers

Boogers. I could add a document-level unique id that passes down into TextLayerItem and I can throw the page number in as well. That should take care of it

jedhelmers avatar Mar 30 '20 16:03 jedhelmers

I think data attributes are the best approach :)

wojtekmaj avatar Mar 30 '20 17:03 wojtekmaj