class HexaPDF::Type::Names

def destinations

See: PDF2.0 s12.3.2

objects.
provides a much easier to work with convenience interface for working with destination
Note: It is possible to use this name tree directly, but HexaPDF::Document::Destinations

The name tree will be created if needed.

Returns the destinations name tree containing a mapping from names to destination objects.
def destinations
  self[:Dests] ||= document.add({}, type: NameTreeNode)
end