1

I would like to get selection from PDF files.

I'm firing window.getSelection(). It's always empty in Chrome's default PDF handler. But with pdf.js extension, it works well from developer console.

My extension has access to file urls. (I added permission for file://*/*, <all_urls>) But still I can't retrieve text from pdf with my extension. My extension uses this method to get selection from page. (I use that method with updated API rules)

alayli
  • 325
  • 1
  • 6
  • 18
  • What about pdf.js. I can retrieve getSelection as expected in documents opened with pdf.js. It runs under chrome-extension url. – alayli Nov 10 '15 at 20:07
  • [How can I get selected text in pdf in Javascript?](https://stackoverflow.com/q/61076303) – wOxxOm Jun 14 '20 at 13:47

0 Answers0