theoj icon indicating copy to clipboard operation
theoj copied to clipboard

Should be possible to select text when annotating

Open arfon opened this issue 10 years ago • 4 comments

Currently it's not. Looks like some smart folks have figured this out though:

  • https://github.com/vivin/pdfjs-text-selection-demo
  • http://vivin.net/2013/06/06/rendering-a-pdf-with-text-selection-using-pdf-js/

arfon avatar Jan 25 '15 03:01 arfon

Started implementing this in this pull request.

https://github.com/openjournals/theoj/pull/41

I think its not working because of some PDF.js version issues

stuartlynn avatar Jan 30 '15 20:01 stuartlynn

Might the fix from #38 work here too?

freelanceastro avatar Mar 18 '15 16:03 freelanceastro

There were definitely issues I noticed while doing this that need affect this issue. There are several levels of scaling involved that I haven't quite figured out how to resolve (scaling between the pdf and the canvas as well as between the canvas and the ui (pixels) )

marcrohloff avatar Mar 18 '15 16:03 marcrohloff

@stuartlynn @marcrohloff it looks like there are some people attempting to solve this problem here: https://groups.google.com/forum/#!topic/mozilla.dev.pdf-js/usjv3igacCg & http://www.google.com/url?q=http%3A%2F%2Ftech.chitgoks.com%2F2015%2F03%2F30%2Fhow-to-create-annotations-in-pdf-js%2F&sa=D&sntz=1&usg=AFQjCNGoGkwU2JR5BXqAy1mlzNw4mqo1NA

arfon avatar Apr 14 '15 01:04 arfon