diff --git a/pdf generation.py b/pdf generation.py index 1d40bed..ecfbbad 100644 --- a/pdf generation.py +++ b/pdf generation.py @@ -2,6 +2,7 @@ from fpdf import FPDF pdf = FPDF() pdf.add_page() +#Header pdf.set_font('Arial', 'B', 16) #width,height,msg,border,align,background pdf.image('Flo.png',20,20,33) @@ -9,4 +10,8 @@ pdf.multi_cell(0,10,'A secret has been encrypted and posted on the blockchain of pdf.multi_cell(0,10,'The key to decrypt this secret has been split in 3 shares like this one. By design, the secret can be decrypted with any 2 of these shares.',0,'C',False) pdf.multi_cell(0,10,'Bellow is the part of the key that belongs to this share',0,'C',False) #add shared key using multi_cell +#footer +pdf.set_y(-35) +pdf.set_font('Arial', 'B', 8) +pdf.cell(0, 10, 'Page %s' % pdf.page_no(), 0, 0, 'C') pdf.output('sharedkey.pdf','F')