1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 08:08:07 +02:00

Improve text-selection for Type3 fonts with empty /FontBBox-entries (issue 6605)

For Type3 fonts where the /CharProcs-streams of the individual glyph starts with a `d1` operator, we can use that to build a fallback bounding box for the font and thus improve text-selection in some cases.
This commit is contained in:
Jonas Jenwald 2021-05-29 18:06:49 +02:00
parent 6255c2a8f3
commit 20770cb06a
4 changed files with 30 additions and 5 deletions

View file

@ -437,6 +437,7 @@
!quadpoints.pdf
!transparent.pdf
!xobject-image.pdf
!issue6605.pdf
!ccitt_EndOfBlock_false.pdf
!issue9972-1.pdf
!issue9972-2.pdf

BIN
test/pdfs/issue6605.pdf Normal file

Binary file not shown.

View file

@ -4935,6 +4935,12 @@
"type": "eq",
"annotations": true
},
{ "id": "issue6605",
"file": "pdfs/issue6605.pdf",
"md5": "67158a9c6d0e966ece55f7c433e18cc5",
"rounds": 1,
"type": "text"
},
{ "id": "annotation-choice-widget-forms",
"file": "pdfs/annotation-choice-widget.pdf",
"md5": "7dfb0d743a0da0f4a71b209ab43b0be5",