how to make a Table as footer in reportlab


how to make a Table as footer in reportlab



i want to make a table as footer with report lab,
the table is already maked , the pages number too,


def footer(canvas, doc):
footer_bottom = doc.bottomMargin
canvas.saveState()
canvas.setFont('Helvetica',9)
text = "Page %d" % doc.page
canvas.drawString(inch, footer_bottom, text)
canvas.restoreState()

frame = Frame(doc.leftMargin, doc.bottomMargin, doc.width, doc.height,)
template = PageTemplate(id='footer', frames=frame, onPage=footer)
doc.addPageTemplates([template])



any one have idea??









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to add background colour in existing image using Swift?

Moria Casán

How to make file upload 'Required' in Contact Form 7?