Selection of a PDF does not cover all characters
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: ctardon, Unassigned)
Details
(Keywords: nightly-community, Whiteboard: [pdfjs-text-selection])
Attachments
(2 files)
Steps to reproduce:
Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868 and scroll to Sample Output of the embedded PDF.
Select the last 6 lines.
Actual results:
Last characters of each line seem not to be selected. (But they are selected because you can copy and paste them)
Expected results:
Last characters should be selected.
Comment 2•3 years ago
•
|
||
I can confirm this issue on win 10 with the latest versions of Firefox. Last chars seems to be unselected but it can be copy-pasted.
Updated•3 years ago
|
I cannot reproduce with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 Build: 20211220094500
(and neither through mozregression with older releases)
Comment 4•3 years ago
|
||
I can't reproduce this either. Is there a specific way to select those lines in order to reproduce the problem?
The bug is present with Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0 Build: 20211220094500.
You have to select "automatic size" in the pdf viewer, and then select them with the mouse, starting from the line that says "Data set 1:"
Comment 6•3 years ago
|
||
I'm still unable to reproduce with the provided steps.
Comment 7•3 years ago
•
|
||
I can reproduce the issue in Nightly97.0a1 Windows10.
STR:
- Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868
- Zoom-in (e.g. 133%) from Firefox hamburger menu (Don't use the zoom widget in the PDF viewer toolbar.)
- Scroll the embedded PDF to bottom
- Select text
Comment 8•3 years ago
|
||
I still can't reproduce. It must be related to screen resolution or something like that.
Comment 9•3 years ago
•
|
||
(In reply to Alice0775 White from comment #7)
- Open https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=1868
- Zoom-in (e.g. 133%) from Firefox hamburger menu (Don't use the zoom widget in the PDF viewer toolbar.)
I also cannot reproduce this, although based on the above steps I believe that the bug is probably connected with the fact that the PDF Viewer UI itself is being zoomed in (which it shouldn't be).
Most likely the patch in bug 786674 needs to be extended to also cover the case where the PDF Viewer is placed in an <iframe>
element, however I don't really know the Firefox zoom-code well enough to attempt a patch unfortunately.
Updated•3 years ago
|
Updated•2 years ago
|
Description
•