Beispiel #1
0
# paper_type=None,
# time_zone=None,
# left_margin=None,
# top_margin=None,
# right_margin=None,
# bottom_margin=None,
# date_flag=None,
# flag_footer=None,
# logo=None,
# logo_filename=None,
# logo_width=None,
# logo_height=None):
report = Report('demo.pdf', paper.A4_PORTRAIT, None, None, None, None, None,
                True, False, True, 'python_logo.png', 80, 80, 70)
report.title = ''
report.author = 'Manuel Vega'

line1_0 = 'CURSO :'
line1_1 = u'%s                             ' % 'CURSO DEMO'
line1_2 = u'PROMOCIÓN :'
line1_3 = u'%s  ' % 'ARMAS XL'
line1_4 = u'ANO: '
line1_5 = u'%s' % '2014'
text = [line1_0, line1_1, line1_2, line1_3, line1_4, line1_5]
heading = HeadingArray(text, 1, True, 14, alignment.LEFT, 4, False, False)

report.add(heading)
table.auto_grow(report.canvas,
                report.page_width - report.left_margin - report.right_margin)
table.set_drew_header(True)
table.set_flag(False)