mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-27 10:35:48 +02:00
Avoid exception when trying to render some glyphs contours
It fixes #20513.
This commit is contained in:
parent
509fcc84e2
commit
fc4985819f
@ -436,7 +436,7 @@ class FontFaceObject {
|
|||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
warn(`getPathGenerator - ignoring character: "${ex}".`);
|
warn(`getPathGenerator - ignoring character: "${ex}".`);
|
||||||
}
|
}
|
||||||
const path = makePathFromDrawOPS(cmds.path);
|
const path = makePathFromDrawOPS(cmds?.path);
|
||||||
|
|
||||||
if (!this.fontExtraProperties) {
|
if (!this.fontExtraProperties) {
|
||||||
// Remove the raw path-string, since we don't need it anymore.
|
// Remove the raw path-string, since we don't need it anymore.
|
||||||
|
|||||||
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -765,4 +765,5 @@
|
|||||||
!two_paragraphs.pdf
|
!two_paragraphs.pdf
|
||||||
!paragraph_and_link.pdf
|
!paragraph_and_link.pdf
|
||||||
!issue20225.pdf
|
!issue20225.pdf
|
||||||
|
!issue20513.pdf
|
||||||
!issue20516.pdf
|
!issue20516.pdf
|
||||||
|
|||||||
BIN
test/pdfs/issue20513.pdf
Normal file
BIN
test/pdfs/issue20513.pdf
Normal file
Binary file not shown.
@ -13099,5 +13099,12 @@
|
|||||||
"enableXfa": true,
|
"enableXfa": true,
|
||||||
"lastPage": 1,
|
"lastPage": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue20513",
|
||||||
|
"file": "pdfs/issue20513.pdf",
|
||||||
|
"md5": "19a3a347773518242fa3cf1c04a9a1e4",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user