mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Improve text-selection for Type3 fonts, using d0
operators, with empty /FontBBox-entries (issue 19624)
For Type3 glyphs with `d1` operators it's easy to compute a fallback bounding box, however for `d0` the situation is more difficult. Given that we nowadays compute the min/max of basic path-rendering operators on the worker-thread, we can utilize that by parsing these Type3 operatorLists to guess a more suitable fallback bounding box.
This commit is contained in:
parent
b9e8844541
commit
0edfd29a3e
3 changed files with 51 additions and 9 deletions
1
test/pdfs/issue19624.pdf.link
Normal file
1
test/pdfs/issue19624.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/user-attachments/files/19126771/okm2500682934750615600.pdf
|
|
@ -3921,6 +3921,15 @@
|
|||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue19624-text",
|
||||
"file": "pdfs/issue19624.pdf",
|
||||
"md5": "087ac2141dbfa218be833efcc143925a",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 2,
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"id": "issue1127-text",
|
||||
"file": "pdfs/issue1127.pdf",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue