'Removes links and annotations from this output.'

def removeLinks(self):

    pages = self.getObject(self._pages)['/Kids']
    for page in pages:
        pageRef = self.getObject(page)
        if ('/Annots' in pageRef):
            del pageRef['/Annots']
