Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Not able to select the text inside the pdfviewer. #5

Open
muralinit opened this issue Feb 26, 2014 · 5 comments
Open

Not able to select the text inside the pdfviewer. #5

muralinit opened this issue Feb 26, 2014 · 5 comments

Comments

@muralinit
Copy link

Hi akrennmair,
First of all thank you very much for writing this directive. This is really for so many people. Can you please add the text selection as well to this directive so that the pdfviewer will be more useful.

Thanks & Regards,
N.Murali Krishna.

@shershen08
Copy link

making text to be selectable in pdf.js rendered documents involves including additional renderer text layer

page.getTextContent().then(function(textContent) {
        var textLayer = new TextLayerBuilder(...

see example here: http://jsfiddle.net/vivin/RjqUf/

@geyang
Copy link

geyang commented Apr 2, 2015

@shershen08 FYI The fiddle doesn't work anymore. It's otherwise a very nice reference!

@shershen08
Copy link

@episodeyang sorry, didn't get your point - the fiddle link is ok

@geyang
Copy link

geyang commented Nov 9, 2015

Hi, I'm on a mac using Chrome. The fiddle doesn't seem to be working, there is no content in the PDF area.

@shershen08
Copy link

@episodeyang fiddle (http://jsfiddle.net/vivin/RjqUf/) work fine for me! Do you see any errors in console? any plugins that may block smth in the browser?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants