Convert the template given by template_name and dictionary to a document in given format. The document (file-like object) will be returned.
format is the filename extension. It’s possible to use “odt”, “pdf”, “doc”, “html” or “rtf” and probably more.
context_instance is the optional parameter which should contain instance of the subclass of django.template.Context.
delete_on_close defines whether the returned document should be deleted automatically when closed.
preprocessors is a list of preprocessors overriding WEBODT_ODF_TEMPLATE_PREPROCESSORS settings variable. Suitable for ODF documents only.
If the template_name ends with .html, template is considered as HTML template, otherwise as ODF based template.
Using same options as render_to, return django.http.HttpResponse object. The document is automatically removed when the last byte of the response is read.
ODF template class