Skip to main content

Tiny RML2PDF is open source implementation of RML (Report Markup Language) from ReportLab

Project description

Open source implementation of RML (Report Markup Language) from ReportLab

Build Status

RML User Guide (or beginner tutorial)

Not all tags are supported, but most of them work.

Install

pip install trml2pdf

Examples

Create a PDF file:

import trml2pdf
print trml2pdf.parseString(open('file.rml','rt').read())

If you are using this for Django you can dynamically create an .rml file with the template system and then render it.

from django.template.loader import get_template
from django.template.context import Context
import trml2pdf

data = {'key1': 'foo'}
template = get_template('template.rml')
context = Context(data)
xmlstring = template.render(context)
pdfstr = trml2pdf.parseString(xmlstring)

Looking for maintainer

I no longer use this library in my own projects, so there is no interest in adding new feature or improving things. If you are intersted in taking it over or being actively involved, please let me know

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

trml2pdf-0.6.tar.gz (23.6 kB view hashes)

Uploaded source

Built Distribution

trml2pdf-0.6-py3-none-any.whl (25.7 kB view hashes)

Uploaded py3

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