Destinations, Outlines and Annotations#
Named and numbered destinations#
These objects are created from the user and must be added to the
NameDestinations map of the PDF Object.
The pdf backend takes care of writing the destination names to the Names dictionary referenced from the PDF catalog object.
The bookmarks are stored in a hierarchical structure:
Each outline can have zero or more children. If Open is set to true, the PDF viewer shows its children by default. The dest must be constructed by the user and could look like this:
destObj is a
NumDest for example.
Annotations are things added to the PDF such as hyperlinks. An annotation can be created just by filling the struct:
The sub type is the annotation type such as "Link" for a hyperlink.
The action needs to be provided by the user, for example
Dictionary entry is an optional
Dict. Each entry from the dictionary is added to the annotation object.