User Tools

Site Tools


reportlabexample

ReportLab (PDF generation)

Hello World

Source code:

pdfgen_hello.py
c = Canvas('pdfgen_hello.pdf')
c.setFont('Helvetica-Bold', 36)
c.drawString(100,700, 'Hello World')
c.save()

Result:

pdfgen_hello.pdf

reportlabexample.txt · Last modified: 2014/10/08 10:04 by jfp