I am using ReportLab to generate a pdf. I have a one-row table t. I need add it at the beginning of each page. How I can do it?
Thanks
I am using ReportLab to generate a pdf. I have a one-row table t. I need add it at the beginning of each page. How I can do it?
Thanks
You can use the
onFirstPage
andonLaterPages
keyword arguments to theDocTemplate.build
function for this.They are called during layout before the pages are drawn. You can pass any function with the following signature:
Use them with