Improved tabular report generation with ReportLab.
Project description
Improved tabular report generation with ReportLab.
to test things real quick:
from reportlab.platypus.doctemplate import SimpleDocTemplate
from reportlab.lib.pagesizes import A4
from reportlab.lib.styles import getSampleStyleSheet
from bericht.table import TableBuilder, Span
rlstyle = getSampleStyleSheet()['BodyText']
builder = TableBuilder(rlstyle)
builder.row('this is a test1', 'second cell1', 'ending cell1')
builder.row('this is a test', 'second cell', 'ending cell', 'forth cell')
builder.row('this is a test', Span.COL, 'forth cell')
doc = SimpleDocTemplate('test.pdf', pagesize=A4)
doc.build([builder.table])
you should find a test.pdf file in the location where you started python
0.0.5
Template bug fix related to compression.
0.0.4
Added page-break-before CSS property.
0.0.3
Added missing dependencies.
0.0.2
Bug fixes and improvements.
0.0.1
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bericht-0.0.5.tar.gz
(18.5 kB
view hashes)
Built Distribution
bericht-0.0.5-py3-none-any.whl
(33.9 kB
view hashes)