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

Copy/paste text selection not working correct from rendered pdf #627

Closed
3 tasks done
frontSoftFront opened this issue Aug 11, 2020 · 4 comments
Closed
3 tasks done
Assignees
Labels
question Further information is requested

Comments

@frontSoftFront
Copy link

frontSoftFront commented Aug 11, 2020

Before you start - checklist

  • I have read documentation in README
  • I have checked sample and test suites to see real life basic implementation
  • I have checked if this question is not already asked

What are you trying to achieve? Please describe.

I'd like to copy/paste the text of my PDF.

Describe solutions you've tried

On canvas mode, I can't correct select text. On SVG mode incorrect pdf rendering.

Additional information

Please, see my screens and file I working on
Coyote #20262583 LC.pdf
Screenshot from 2020-08-11 12-29-01
Screenshot from 2020-08-11 12-28-41
Screenshot from 2020-08-11 12-07-05
Screenshot from 2020-08-11 12-06-27
Screenshot from 2020-08-11 12-06-12

Environment

  • Browser (if applicable) [e.g. Chrome 57, Firefox 59]: Chrome 72
  • React-PDF version [e.g. 3.0.4]: 3.0.6
  • React version [e.g. 16.3.0]: 15.6.2
  • Webpack version (if applicable) [e.g. 4.16.2]: 3.3.0
@wojtekmaj wojtekmaj self-assigned this Aug 11, 2020
@wojtekmaj wojtekmaj added the question Further information is requested label Aug 11, 2020
@wojtekmaj
Copy link
Owner

Unfortunately this PDF is not properly encoded. Copying text on Firefox, Chrome and Adobe Reader all results in gibberish.

@basile-savouret
Copy link

@wojtekmaj it's been a while since this issue was created. Is there any update on this thread: mozilla/pdf.js#10205? Or in which version can i go back to have the text in svg rendering correctly?

@wojtekmaj
Copy link
Owner

it's been a while since this issue was created. Is there any update on this thread: mozilla/pdf.js#10205?

I wish I was able to do anything about it.

Or in which version can i go back to have the text in svg rendering correctly?

Last React-PDF version not using pdf.js 2.0.550 or newer was 3.0.6. But, uh, it's 3 years old.

@basile-savouret
Copy link

Thanks a lot for the answer :) . I'll try the older versions and see if it's good enough. I wish you great week anyway!

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

No branches or pull requests

3 participants