Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/core/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,7 @@ class PartialEvaluator {
if (
isAddToPathSet ||
state.fillColorSpace.name === "Pattern" ||
state.strokeColorSpace.name === "Pattern" ||
font.disableFontFace
) {
PartialEvaluator.buildFontPaths(
Expand Down
2 changes: 1 addition & 1 deletion src/display/font_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class FontFaceObject {
} catch (ex) {
warn(`getPathGenerator - ignoring character: "${ex}".`);
}
const path = makePathFromDrawOPS(cmds.path);
const path = makePathFromDrawOPS(cmds?.path);

if (!this.fontExtraProperties) {
// Remove the raw path-string, since we don't need it anymore.
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -765,3 +765,4 @@
!two_paragraphs.pdf
!paragraph_and_link.pdf
!issue20225.pdf
!issue20513.pdf
Binary file added test/pdfs/issue20513.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13099,5 +13099,12 @@
"enableXfa": true,
"lastPage": 1,
"type": "eq"
},
{
"id": "issue20513",
"file": "pdfs/issue20513.pdf",
"md5": "19a3a347773518242fa3cf1c04a9a1e4",
"rounds": 1,
"type": "eq"
}
]