-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make text selectable ? #29
Comments
Similar to #18 |
i've implemented this in a project, can add as a pr |
Yes please :) Could you do that ? Or push it on your fork |
@mmaclach, sure, that would be great! |
hey guys, i've added a pr with a solution - I'm not certain it will work for every case |
Hello ! Can we use the text inside the rendered layer ? |
I succeed using pdf_viewer part of pdfjs. Using this pdf_viewer part is going to help for others issues (like hyperlinks, dynamic zoom..). |
Ok mmaclach, It's also better for element accessing in debug mode, because I don't have canvas any more. |
Maybe you're misunderstanding me, this is from pdfjs, using the textContent() from the page and creating svg:text objects. If you wanted to you could create html instead. However I think for some pdf documents the text content may not exist |
Hello, @VadimDez Using PDFPageView solves this and may solve other issues (dynamic update viewport - usefull for big pdf, hyperlinks) |
@mmaclach @VadimDez |
@Vi-dot Looks great! Is there any way to get it work with fake worker? Would simplify integration. |
What do you mean by fake worker ? But the PDFPageView way may be not perfect. Now I'm trying to have a dynamic zoom (without reloading pdf), it works, but textLayer disapear with this method. |
looks good, I wasn't aware of PDFPageView |
@Vi-dot right now it's working with fake worker. I think with |
Hello,
I don't know if it's because ng2-pdf-viewer use a canvas, but we can't select text in the pdf viewer.
Someone has an idea to make it available ?
Thanks
The text was updated successfully, but these errors were encountered: