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.


pip install trml2pdf


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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page