Skip to content
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

Is it possible to copy text? #1162

Open
milossramek opened this issue Oct 23, 2024 · 3 comments
Open

Is it possible to copy text? #1162

milossramek opened this issue Oct 23, 2024 · 3 comments

Comments

@milossramek
Copy link

Hi,
I would like to ask if UV enables to copy page text (if OCR-ed). UV seems to be the right tool we are looking for, except for this feature, which I've not seen on any of its demos.
Thanks!
Milos

@demiankatz
Copy link
Contributor

In what context(s) are you looking for this functionality? I believe that it should already be possible to copy OCR text out of OCR'ed PDF files (at least in some configurations). It is also possible to download per-page or per-document OCR files if manifests are set up correctly (you can see an example of this in Villanova's Digital Library, for example). I believe some work has also been done on adding a side panel to show OCR text, but I'm not sure how mature that is. But if you're looking to copy and paste text directly out of the OpenSeadragon panel, I do not believe that is currently possible.

@milossramek
Copy link
Author

Thank you for your answer!
I am looking for the text copy&paste option. In some demos ( e.g. https://uv-v4.netlify.app/#?c=&m=&cv=14&xywh=-578%2C-1%2C6027%2C3372) it is possible to search for text and then the results are highlighted directly on a page. So I assumed that, perhaps, it would also be possible to copy the text.

@demiankatz
Copy link
Contributor

@milossramek, I believe that the search result highlighting works by creating boxes based on coordinates provided by the server, but the actual text is not overlaid on the canvas. However, I have not personally worked with this feature, so I could be mistaken, or there could be more options than I am aware of. If anybody else has deeper knowledge, I'd encourage them to speak up! :-)

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

No branches or pull requests

3 participants
@demiankatz @milossramek and others