pip install spiff
python
import spiff
python
doc = spiff.Document()
python
python
table = doc.add_table(rows=3, columns=3)
doc.set_page_layout(top=2.0, right=1.5, bottom=2.0, left=1.5)
header = doc.add_header()
footer = doc.add_footer()
python
doc.save("example.pdf")