code: def split_chapters(self, jsondata=None, prefix=''):
          
          self.check_path()
  
          toc = jsondata or self.get_toc()
          chapters = []
          for index, chpagerange in enumerate(toc):
              newprefix = prefix + str(index) + '-'
              write_to_path = self.write_pagerange(chpagerange, prefix=newprefix)
              chapters.append({"title": chpagerange['title'], "path": write_to_path})
          return chapters
docs: Split the PDF doc into individual chapters based on the page-range info,
          storing individual split PDFs in the output folder `self.directory`.
          By default, we use the `self.get_toc()` to get the chapters page ranges.
          Pass in the page range dict `jsondata` to customize split points.