mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
parent
55db43966e
commit
136c1faa7f
4 changed files with 42 additions and 2 deletions
|
@ -324,7 +324,7 @@ class Catalog {
|
|||
continue;
|
||||
}
|
||||
if (!outlineDict.has("Title")) {
|
||||
throw new FormatError("Invalid outline item encountered.");
|
||||
warn("Invalid outline item encountered.");
|
||||
}
|
||||
|
||||
const data = { url: null, dest: null, action: null };
|
||||
|
@ -357,7 +357,7 @@ class Catalog {
|
|||
unsafeUrl: data.unsafeUrl,
|
||||
newWindow: data.newWindow,
|
||||
setOCGState: data.setOCGState,
|
||||
title: stringToPDFString(title),
|
||||
title: typeof title === "string" ? stringToPDFString(title) : "",
|
||||
color: rgbColor,
|
||||
count: Number.isInteger(count) ? count : undefined,
|
||||
bold: !!(flags & 2),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue