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

Incorrect text when copying from pdf and pasting into a text editor #3009

Open
EvgeniyBudaev opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@EvgeniyBudaev
Copy link

Describe the bug
We connect the font via Font.register. Text 123ff456fi987. Copy in the downloaded pdf file 123ff456fi987. Paste it into a text editor. We get 123f456f987 instead of 123ff456fi987. Bottom line: there is a bug with the symbols ff, fi with plug-in fonts.

To Reproduce
Steps to reproduce the behavior including code snippet (if applies):

  1. https://github.com/EvgeniyBudaev/react-pdf-renderer
  2. Dowload pdf file with text: 123ff456fi987
  3. Copy in the downloaded pdf file 123ff456fi987
  4. Paste it into a text editor.
    1. We get 123f456f987 instead of 123ff456fi987

You can make use of react-pdf REPL to share the snippet

Expected behavior
123ff456fi987

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [Windows, Ubuntu]
  • Browser [chrome]
  • React-pdf version [e.g. v4.1.6]
    2024-12-27_14-50_1
    2024-12-27_14-50
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

1 participant