Thanks to @megc1 for surfacing the capabilities of this package
from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.set_font("Arial", "B", 16)
pdf.cell(40, 10, "Hello World!")
pdf.output("my_generated_document.pdf", "F")
See the package documentation and tutorial for more examples.