Skip to main content

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.6

  • Proper handling of /DescendantFonts when creating letterhead XObject.

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


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.6.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distribution

bericht-0.0.6-py3-none-any.whl (34.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page