diff --git a/pdf.py b/pdf.py index 11c1950..416f83e 100644 --- a/pdf.py +++ b/pdf.py @@ -1,5 +1,9 @@ from reportlab.pdfgen import canvas +c=canvas.Canvas("report.pdf") def generate_pdf(text): - c=canvas.Canvas("report.pdf") - c.drawString(0,830,text) + c.drawString(0,800,text) c.save() +def edit_text(color,size,font_name): + c.setFillColor(color) + c.setFont(font_name, size, leading = None) +