We would like to add png, jpeg and eps images, where exactly do these image types need to be added?
(actually, the eps have turned into x-vclgraphic)
That is, there is not only a single company logo, but also other images such as certifications that need to be displayed on externally communicated documents.
[edited]
seems relatorio has restructured and no longer uses EXTENSIONS as did when the earlier posts were made.
That said, I don’t understand why it does not simply copy any images in the template document even if not overridden programmatically.
For example, the template has the following snippet:
We are unable to deploy Tryton generated documents to third parties if we can’t meet company identity needs (this means request for proposals, purchase orders, quotes and invoices).
Is there an alternative solution to relatorio? (though it seems at first glance not a relatorio problem since the examples show the logos passing though just fine!)
You are not using the correct python-magic module.
This module is only required when using Flat OpenDocument as template source instead of OpenDocument.
We can not include such code because ‘loext’ is not a standard attribute of <draw:image>. As defined by the standard, the format of the <office:binary-data> must be analyzed:
The image data may be in an arbitrary data format. Consumers have to analyze the image data to determine the data format that is used.
I’m using the standard ArchLinux community package python-magic
$ pacman -Ss python-magic
community/python-magic 5.37-1 [installé]
Python bindings to the magic library
I see that there is in AUR python-magic-ahupp 0.4.15-1
I’ll give it a try but we try to use mostly approved, standard modules for the most part…
BTW - I have not come across this specific reference in relatorio.
No this is not the standard package named python-magic that you have. It is the package named file-magic. It is not our fault if your distribution does not follow the official python package naming.
BTW… already with .fodt (flat OpenDocument XML) it appears that one is already using a OOO/LO extension… seems extremely odd to not utilise its extension if available to recuperate the associated ‘manifest:media-type’ for the file. FODT file extension - File-Extensions.org