mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.23k stars 9.83k forks source link

A part of a PDF's content was removed after copy/paste options. #18195

Closed sergey-goryushko closed 1 month ago

sergey-goryushko commented 1 month ago

Attach (recommended) or Link to PDF file here: Some things I want to improve. . ..pdf

Configuration:

Steps to reproduce the problem:

  1. Open the attached PDF at https://mozilla.github.io/pdf.js/web/viewer.html
  2. Copy the “Canva Sans - a little bit different.“ PDF’s native content.
  3. Paste the text from the previous step within the PDF.

What is the expected behavior? Any content has not to be deleted. (add screenshot)

expected result

What went wrong? Two “f“ letters were removed from the "different" word. (add screenshot)

actual result

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Snuffleupagus commented 1 month ago

Duplicate of #12237

sergey-goryushko commented 1 month ago

@Snuffleupagus thanks for the quick response. Could you let me know, please, when you're going to fix the issue #12237? I wondered because you've lived with that for more than 4 years.

marco-c commented 1 month ago

@sergey-goryushko if you want to help us and all pdf.js users by stopping the counter at 4 years instead of letting it go to 5 or 6, you're welcome to contribute a fix!

Jokes aside, there are no immediate plans to fix that issue, we are working on other things at the moment. So, we can't let you know when we're going to fix it. We do, however, happily accept contributions!

sergey-goryushko commented 1 month ago

@marco-c got it)

Thanks for the comprehensive feedback)