code: def _cleanup(self):
          
          self.device = None
          self.doc = None
          self.parser = None
          self.resmgr = None
          self.interpreter = None
docs: Frees lots of non-textual information, such as the fonts
          and images and the objects that were needed to parse the
          PDF.