mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Support encoded dest-strings in /GoTo destination dictionaries (issue 14864)
Interestingly enough this appears to be the very first case of *encoded* dest-strings, in /GoTo destination dictionaries, that we've actually come across. What's really fascinating is that it's less than a week after issue 14847, given that these issues are *somewhat* similar.
This commit is contained in:
parent
397f71424c
commit
df5a4fd0a7
4 changed files with 38 additions and 1 deletions
|
@ -1576,7 +1576,9 @@ class Catalog {
|
|||
if (dest instanceof Name) {
|
||||
dest = dest.name;
|
||||
}
|
||||
if (typeof dest === "string" || Array.isArray(dest)) {
|
||||
if (typeof dest === "string") {
|
||||
resultObj.dest = stringToPDFString(dest);
|
||||
} else if (Array.isArray(dest)) {
|
||||
resultObj.dest = dest;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue