-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
issue #3346: Text Selection Example #3347
Conversation
@vivin , can you change your example to use extracted text_layer_builder.js? |
@yurydelendik Will do so! I will try and get to it this weekend. |
@yurydelendik I've updated the example. I tested it out and it seems to work. Hope it's good to go! |
How much this code depend on viewer.js? I see that it depends on find bar? |
@mitar, |
I am just saying that it is useful to have clean and small examples. :-) |
@mitar Oh, of course. I hope I didn't come across as rude. Was only trying to clarify. :) |
:-) No problem. The issue is that we tried to implement text selection just few days ago. And we had to copy-paste some code from |
@mitar, The text selection code is actually independent from |
I am not sure. It was done by a teammate. @speigg, can you fill us in here? Why was |
@mitar I think you will need |
Yes, some code from |
@speigg, OK, then no need for us to merge this into one file, but could just add two separate files. It is easier to track this then. |
Yes, |
@vivin What is the status of this PR? |
Still waiting for a merge. Hope they haven't forgotten about it. :) |
In that case, @yurydelendik might know more. :-) |
It might be a good idea to squash the commits in this PR, to keep the commit history cleaner. |
<body> | ||
This is a minimal pdf.js text-selection demo. The existing minimal-example shows you how to render a PDF, but not | ||
how to enable text-selection. This example shows you how to do both. <br /><br /> | ||
<div id="pdfContainer" class = "pdf-content"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove extra spaces near 'class=' ?
Hey Yury! Will make the changes as soon as I can and squash. |
Any updates on this? |
Sorry, was caught up with work! I will try and get to this today. |
squashing commits.
Commits have been squashed. Should be ok to merge. |
issue #3346: Text Selection Example
Thank you for the patch |
@yurydelendik Glad to help! :) |
Just noticed this example recently underwent a complete re-write. I had a functional version working with the old example (just mis-aligned text issue I am working through). Is there significant or notable changes in the latest example? Here is the commit I am referring to: |
@apoku please open a separate issue for that an specify more information. Shortly, #5552 creates a better way to handle the painting of the entire page (including canvas, text layer and annotation). You may still use TextLayerBuilder (but it's really hard to tell since you did not provide any code you are refrerring to). |
Thanks @yurydelendik, your short explanation is perfectly sufficient--I was just wanting to understand conceptually what that re-write encompassed. |
Text selection example.