'Add a destination to the output.
:param str title: Title to use
:param int pagenum: Page number this destination points at.'

def addNamedDestination(self, title, pagenum):

    dest = Destination(TextStringObject(title), NumberObject(pagenum), NameObject('/FitH'), NumberObject(826))
    self.named_dests.append(dest)
