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

Avoid to access to a missing cidSystemInfo property

Fixes #17689.
This commit is contained in:
Calixte Denizet 2024-02-19 09:54:24 +01:00
parent d96fd80ca0
commit a6eadf8150
3 changed files with 15 additions and 1 deletions

View file

@ -3719,7 +3719,9 @@ class PartialEvaluator {
properties.composite &&
((properties.cMap.builtInCMap &&
!(properties.cMap instanceof IdentityCMap)) ||
(properties.cidSystemInfo.registry === "Adobe" &&
// The font is supposed to have a CIDSystemInfo dictionary, but some
// PDFs don't include it (fixes issue 17689), hence the `?'.
(properties.cidSystemInfo?.registry === "Adobe" &&
(properties.cidSystemInfo.ordering === "GB1" ||
properties.cidSystemInfo.ordering === "CNS1" ||
properties.cidSystemInfo.ordering === "Japan1" ||