Skip to content

Commit

Permalink
Merge pull request #7 from Pkpratik/patch-1
Browse files Browse the repository at this point in the history
added edit_text function
  • Loading branch information
shashank-sharma authored Nov 4, 2019
2 parents 1ed208b + c2f584a commit 12b0ceb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pdf.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 12b0ceb

Please sign in to comment.