code: def stitch_pdfs(pdf_list):
    ''' Merges a series of single page pdfs into one multi-page doc '''
    pdf_merger = PdfFileMerger()
    for pdf in pdf_list:
      pdf_merger.append(pdf)
  
    with NamedTemporaryFile(prefix='pyglass', suffix='.pdf', delete=False) as tempfileobj:
      dest_path = tempfileobj.name
  
    pdf_merger.write(dest_path)
    pdf_merger.close()
    return dest_patf stitch_pdfs(pdf_list):
    ''' Merges a series of single page pdfs into one multi-page doc '''
    pdf_merger = PdfFileMerger()
    for pdf in pdf_list:
      pdf_merger.append(pdf)
  
    with NamedTemporaryFile(prefix='pyglass', suffix='.pdf', delete=False) as tempfileobj:
      dest_path = tempfileobj.name
  
    pdf_merger.write(dest_path)
    pdf_merger.close()
    return dest_path
docs: Merges a series of single page pdfs into one multi-page doc