code: def _single_page_pdf(page):
      
      pdf = Pdf.new()
      pdf.pages.append(page)
      bio = BytesIO()
      pdf.save(bio)
      bio.seek(0)
      return bio.read()
docs: Construct a single page PDF from the provided page in memory