code: def _steal_content(self, other_page):
          
          other_doc = other_page.doc
          other_doc_pages = other_doc.pages[:]
          other_doc_nb_pages = other_doc.nb_pages
          other_page_nb = other_page.page_nb
  
          to_move = [
              (other_page.__get_box_path(), self.__get_box_path()),
              (other_page.__get_img_path(), self.__get_img_path()),
              (other_page._get_thumb_path(), self._get_thumb_path())
          ]
          for (src, dst) in to_move:
              # sanity check
              if self.fs.exists(dst):
                  logger.error("Error, file already exists: %s" % dst)
                  assert(0)
          for (src, dst) in to_move:
              logger.info("%s --> %s" % (src, dst))
              self.fs.rename(src, dst)
  
          if (other_doc_nb_pages <= 1):
              other_doc.destroy()
          else:
              for page_nb in range(other_page_nb + 1, other_doc_nb_pages):
                  page = other_doc_pages[page_nb]
                  page.change_index(offset=-1)
docs: Call ImgDoc.steal_page() instead