with templated-docs: how to insert images from an ImageField

34 views
Skip to first unread message

Fenrir Sivar

unread,
Jan 19, 2021, 5:43:04 PM1/19/21
to Django users
I'm generating reports using (a patched for django 3x fork of) templated-docs. This module lets you create OTD templates in LibreOffice and render them to PDF inside a django view.

This works great for complex documents with text, but I have no clue how to insert images as well. The images come from an ImageField in the table from which I get the info
that goes into the document.
does anyone have experience how to create reports with images? I'm open towards something else than templated-docs

Diptesh Choudhuri

unread,
Jan 19, 2021, 9:58:49 PM1/19/21
to Django users
Reply all
Reply to author
Forward
0 new messages