Creates a bookmark; bookmarks are normally obtained from Document.getBookmarks.
Outline data read by the Worker.
Optionalparent: Bookmark | null
Parent bookmark, or null for a top-level item.
Optionalindex: number
Index among sibling bookmarks (0-based).
Action of the target: GoTo for in-document targets, URI for links
Action type: /S of /A in the file (GoTo, GoToR, Launch, Named, URI, JavaScript and so on, as is); GoTo for items with only /Dest (including named destinations); an empty string without an action. When the file info cannot be read, by the engine type: GoTo for in-document targets, URI for links, an empty string otherwise (the engine reports all other actions as none)
Color of the outline item (/C, 0–1); undefined when missing or black (all 0)
Blue, 0 to 1.
Green, 0 to 1.
Red, 0 to 1.
The target position read by the engine, in PDF coordinates (bottom-left origin, not converted); given even when the target page no longer exists. null without an in-document target; a dimension is null when missing (/Fit and similar types, or null)
Horizontal position in PDF coordinates; null when missing.
Vertical position in PDF coordinates; null when missing.
x of the target position (page coordinates, pt)
Index among sibling bookmarks (0-based)
Returns the title.
The bookmark title.
Object number of the outline item in the file (undefined when it cannot be read for encrypted documents)
Target page (1-based); 0 without an in-document target (such as a link)
Address of a link bookmark; an empty string for others
y of the target position (page coordinates, top-left origin, pt)
Has an in-document target or a link address
An outline (bookmark) item of the document. Positions are in unrotated page coordinates (top-left origin, PDF points).