code: def split_pdf(pdf_path):
    ''' Splits a multi-page pdf into a list of single page pdfs '''
    pdf = PdfFileReader(pdf_path)
    pdf_list = []
  
    for page_num in range(pdf.numPages):
      page = pdf.getPage(page_num)
  
      pdf_writer = PdfFileWriter()
      pdf_writer.addPage(page)
  
      with NamedTemporaryFile(prefix='pyglass', suffix='.pdf', delete=False) as tempfileobj:
        pdf_writer.write(tempfileobj)
        page_path = tempfileobj.name
  
      pdf_list.append(page_path)
  
    return pdf_lisf split_pdf(pdf_path):
    ''' Splits a multi-page pdf into a list of single page pdfs '''
    pdf = PdfFileReader(pdf_path)
    pdf_list = []
  
    for page_num in range(pdf.numPages):
      page = pdf.getPage(page_num)
  
      pdf_writer = PdfFileWriter()
      pdf_writer.addPage(page)
  
      with NamedTemporaryFile(prefix='pyglass', suffix='.pdf', delete=False) as tempfileobj:
        pdf_writer.write(tempfileobj)
        page_path = tempfileobj.name
  
      pdf_list.append(page_path)
  
    return pdf_list
docs: Splits a multi-page pdf into a list of single page pdfs