ng-pdfviewer icon indicating copy to clipboard operation
ng-pdfviewer copied to clipboard

Not able to select the text inside the pdfviewer.

Open muralinit opened this issue 10 years ago • 5 comments

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.

muralinit avatar Feb 26 '14 05:02 muralinit

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/

shershen08 avatar Nov 11 '14 14:11 shershen08

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

geyang avatar Apr 02 '15 13:04 geyang

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

shershen08 avatar Apr 02 '15 13:04 shershen08

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

geyang avatar Nov 09 '15 16:11 geyang

@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?

shershen08 avatar Nov 09 '15 19:11 shershen08