Skip to content

wrong line highlighted / highlight shifted up #12881

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

Closed
alexander-thiesen opened this issue Jan 20, 2021 · 2 comments
Closed

wrong line highlighted / highlight shifted up #12881

alexander-thiesen opened this issue Jan 20, 2021 · 2 comments
Labels

Comments

@alexander-thiesen
Copy link

alexander-thiesen commented Jan 20, 2021

When I highlight specific text in the pdf viewer beta and copy it the wrong part gets copied instead of the highlighted text. I copy the text 2 lines under the highlight. I have the problem only with specific pdf, for example with an ISO from breuth. I tried this using Adobe Acrobat, Chrome, Edge and on a second Windows Computer. None of those pdf viewers had that problem. Maybe it is a software bug?

@seanwuapps
Copy link

Experienced with similar problem where the text layer is affected by the global css styles. Try adding

.react-pdf__Page__textContent span { 
  line-height: 1em !important; 
}

@Snuffleupagus
Copy link
Collaborator

Fixed by PR #12896

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

No branches or pull requests

5 participants