pypdfml

Simple XML wrapper for reportlab.


Keywords
pdf, generating, reportlab, report, xml, jinja
License
Other
Install
pip install pypdfml==0.1.0alpha

Documentation

pypdfml

Simple XML wrapper for reportlab with jinja2 support

Requirements

  • reportlab
  • PIL
  • jinja2 (optional)

Usage

from pypdfml import PyPDFML

pdf = PyPDFML('example.xml')

context = {
    'what': 'world'
}

pdf.generate(context)
pdf.save()

Examples

The following template generates this PDF document