MCPcopy Create free account
hub / github.com/geekcomputers/Python / header

Method header

PDF/header_footer.py:8–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class MyPdf(FPDF):
8 def header(self):
9 # Uncomment the line below to add logo if needed
10 # self.image('somelogo.png',12,10,25,25) # Draw Image ar (12,10) with height = 25 and width = 25
11 self.set_font("Arial", "B", 18)
12 self.text(27, 10, "Generating PDF With python")
13 self.ln(10)
14
15 def footer(self):
16 # Set Position at 1cm (10mm) From Bottom

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected