1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
Metadata-Version: 2.1
Name: trml2pdf
Version: 0.6
Summary: Tiny RML2PDF is open source implementation of RML (Report Markup Language) from ReportLab
Home-page: http://github.com/romanlv/trml2pdf/
Author: Fabien Pinckaers
Author-email: fp@tiny.be
Maintainer: Roman Lyashov
Maintainer-email: romitch@gmail.com
License: GNU LESSER GENERAL PUBLIC LICENSE
Description: Open source implementation of RML (Report Markup Language) from ReportLab
[](https://travis-ci.org/romanlv/trml2pdf)
[RML User Guide](http://www.reportlab.com/docs/rml2pdf-userguide.pdf) (or [beginner tutorial](http://www.reportlab.com/docs/rml-for-idiots.pdf))
Not all tags are supported, but most of them work.
Install
-------
`pip install trml2pdf`
Examples
--------
Create a PDF file:
```python
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.
```python
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
Keywords: pdf reportlab
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
|