You can use python-trml2pdf to see the results: tiny_sxw2rml.py template.odt > template.rml Then, save it and use Tiny SXW2RML to transform it to RML. To use it in a django app, you can use the django template system placeholders like. In your template you must be sure to put also the text you will change, to format it to your needs. If you need a more complicated table, split it in different tables or good results will be difficult to achieve.įormat the page dimensions with openoffice, it will be the same on pdf. If you use tables, make sure to have the same number of column for every rows. The procedure is quite simple and we’ll explain it here.įirst of all, generate a text odt document. One way to generate those templates it to write by hand the XML, with some difficult actions needed to generate tables and complex items.Īnother easy way is to use to make the template. Satchmo uses rml templates for shipping labels, invoices and packing slip. It’s an XML format and it can be easy generated from web application, such as Django. Report Markup Language ( RML) is the ReportLAB and Open ERP format for pdf reports. Tags: databases, django, markup language, odt files, openoffice, packing slip, page dimensions, placeholders, python, rml, Satchmo, shipping labels, templates, xml format.Howto: Make RML templates from ODT files
0 Comments
Leave a Reply. |