Unable to Copy and Paste the entire text from a PDF
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: rdoghi, Unassigned)
Details
(Whiteboard: [pdfjs-text-selection])
Attachments
(1 file)
|
6.79 KB,
image/png
|
Details |
Found in
- Beta 122.0b09
Affected versions
- Nightly 123.0a1 (2024-01-16)
- Beta 122.0b09
- Release 121
Affected platforms
- All
Steps to reproduce
- Reach http://www.lysator.liu.se/mit-guide/MITLockGuide.pdf
- Select the "The figure shows a two hole lock." Text from page 7.
- Copy and Paste the text in a different document.
Expected result
- The entire text should be copied and pasted correctly.
Actual result
- The word "figure" is only partially copied, only the "gure" text is copied.
Regression range
Not a Regression
Please also note that when we try to copy and paste the entire paragraph a lot of extra spaces are displayed inside the actual words.
Please take a look at the copy pasted text from the PDF inside notepad.
The " atland" mo del of a lo ck is shown in Figure 3.1. This is not a cross section of a
real lo ck. It is a cross section of a very simple kind of lo ck. The purp ose of this lo ck is to
keep two plates of metal from sliding over each other unless the prop er key is present. The
lo ck is constructed by placing the two plates over each other and drilling holes which pass
through b oth plates. The gure shows a two hole lo ck. Two pins are placed in each hole
such that the gap b etween the pins do es not line up with the gap b etween the plates. The
b ottom pin is called the key pin b ecause it touches the key. The top pin is called the driver
pin. Often the driver and key pins are just called the driver and the pin. A protrusion on
the underside of the b ottom plate keeps the pins from falling out, and a spring ab ove the
top plate pushes down on the driver pin.
Comment 1•2 years ago
|
||
(In reply to Rares Doghi, Desktop QA from comment #0)
Expected result
- The entire text should be copied and pasted correctly.
Actual result
- The word "figure" is only partially copied, only the "gure" text is copied.
This is a bug in the PDF document itself, since it uses Type3 fonts without including any /ToUnicode data (which would be needed to be able to copy ligatures).
Note that this can be reproduced in other PDF Viewers as well, with both Adobe Reader and PDFium (i.e. the Google Chrome PDF Viewer) being similarly affected.
Please also note that when we try to copy and paste the entire paragraph a lot of extra spaces are displayed inside the actual words.
Please take a look at the copy pasted text from the PDF inside notepad.The " atland" mo del of a lo ck is shown in Figure 3.1. This is not a cross section of a
real lo ck. It is a cross section of a very simple kind of lo ck. The purp ose of this lo ck is to
keep two plates of metal from sliding over each other unless the prop er key is present. The
lo ck is constructed by placing the two plates over each other and drilling holes which pass
through b oth plates. The gure shows a two hole lo ck. Two pins are placed in each hole
such that the gap b etween the pins do es not line up with the gap b etween the plates. The
b ottom pin is called the key pin b ecause it touches the key. The top pin is called the driver
pin. Often the driver and key pins are just called the driver and the pin. A protrusion on
the underside of the b ottom plate keeps the pins from falling out, and a spring ab ove the
top plate pushes down on the driver pin.
Hence the spacing issues are the only part of this bug that'd be actionable unfortunately.
Comment 2•2 years ago
|
||
:rdoghi, if you think that's a regression, could you try to find a regression range using for example mozregression?
Comment 3•2 years ago
|
||
A can reproduce similar problem using Chrome as well as Adobe Acrobat Reader 64bit.
fi, fl, ff ...
| Reporter | ||
Comment 4•2 years ago
|
||
Should we keep this issue open just for the Spacing problem ? Copy Pasting from Chrome will not add the extra spaces.
Updated•2 years ago
|
Description
•