mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[api-minor] Support Named-actions in the outline (issue 15367)
Apparently this is implemented in e.g. Adobe Reader, and the specification does support it, however it cannot be commonly used in real-world PDF documents since it took over ten years for this feature to be requested.
This commit is contained in:
parent
86370bd5c5
commit
216b86a082
5 changed files with 38 additions and 2 deletions
|
@ -302,7 +302,7 @@ class Catalog {
|
|||
throw new FormatError("Invalid outline item encountered.");
|
||||
}
|
||||
|
||||
const data = { url: null, dest: null };
|
||||
const data = { url: null, dest: null, action: null };
|
||||
Catalog.parseDestDictionary({
|
||||
destDict: outlineDict,
|
||||
resultObj: data,
|
||||
|
@ -324,6 +324,7 @@ class Catalog {
|
|||
}
|
||||
|
||||
const outlineItem = {
|
||||
action: data.action,
|
||||
dest: data.dest,
|
||||
url: data.url,
|
||||
unsafeUrl: data.unsafeUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue