Reportlab: header with data from page
问题 I'm using the on page function and a page template to make headers for a subset of the pages in my document: templates.append(PageTemplate(id='Overview', frames=frame, onPage=HeaderOverview)) The header function for this template: ################################ # Function HeaderOverview - header for overview page def HeaderOverview(canvas,doc): canvas.saveState() headboxh = 15 headboxx = 20 headboxy = 730 headboxw = 570 canvas.rect(headboxx, headboxy, headboxw, headboxh, fill=1) canvas