- Add support for sub and sup html tags for odt
- Support django 3.2, django 4.0 and python 3.10
- Add url in logger template tag
image_url_loader
- allow to use image url loader in pdfs templates
- allow cases where django change pdf suffix
- WARNING : Breaking change
- PDF autodiscovering by WEASYPRINT renderer should now be suffixed by .pdf.html
- Fix ODT images from html, add src in Pictures
- Fix some cases where mimetype can't be guessed
- Fix ODT images display with Word.
- Fix defined police on input text for odt
- Support django 3.1
- Implement Weasyprint PDF Template Engine
- Verify if ODT or DOCX file are zippable file to avoid exceptions
- Fix cases when image didn't fit page
- Translate img tag in from_html for odt templates
- Fix deprecation warnings and bad closing files
- Fix span tags with text:span in from_html
- Add rendering of footer and header
- Remove automatically resize
- Change value conversion px to odt
- Add extension at the end of the generated file
- Change AbstractEngine, inheritate from DjangoTemplates
- Fix context rendering odt.
- fix max_height and max_width
- Add anchor image_url_load, image_load
- Replace width and height for image_url_load, image_load by max_width and max_height
- fix odt image inclusion
- Load odt_tags and docx_tags automatically, remove loads to make it works
- Add tag image_url_load
- Fix odt pictures inside zip
- Allow heading, and text-numbered list in from_html odt tag
- Fix text-input replacement for list inside paragraphs
- Fix text-input replacement for odt
- Add custom style for italic and underline text for html filter
Features:
- from_html tag filter for odt templates
Fixes:
- automatic escape break line in odt template
Improve:
- automatic escape break line in odt template
Improve:
- Tags are renamed
- ODT image inclusion
Update:
- From now on,
{% ... %}
are also cleaned.
Other:
- the template is cleaned before it is filled.
Optimize:
- clean methods
Add:
- a method that removes incorrect additions in the template tags of the xml file
Update:
- the documentation
Fix:
- requirements
Other:
AbstractEngine
becomesZipAbstractEngine
and allow you to write custom engines for zip base documents
Fixes:
- template generation from different django storage
Fixes:
- conditions to determine mimetype template
Fixes:
- packaging
Fixes:
- Allow mimetype zip for DOCX and ODT
Fixes:
- Compatibility with non FileStorageBackend
Update
- Pillow>=5.4.1
requests
is no longer needed.
From now on, you can specify bold text.
Image loaders can now take width and height as dxa
, px
, pt
, in
, cm
and emu
.
Add:
- A template tag to load images into a docx template (
docx_image_loader
).
Add:
- Docx template engine (
template_engines.backends.docx.DocxEngine
). - Docx template class (
template_engines.backends.odt.DocxTemplate
).
- Abstract template engine for writing custom engines
(
template_engines.backends.abstract.AbstractEngine
). - Abstract template class for writing custom template classes
(
template_engines.backends.abstract.AbstractTemplate
). - Odt template engine (
template_engines.backends.odt.OdtEngine
). - Odt template class (
template_engines.backends.odt.OdtTemplate
). - A template tag to load images into an odt template (
odt_image_loader
).