Projet

Général

Profil

Development #16259

permettre l'insertion d'une image dans un modèle de document

Ajouté par Frédéric Péters il y a presque 7 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
11 mai 2017
Echéance:
15 juin 2017
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Une variable qui serait de type fichier (et dont le contenu une image), son utilisation dans un document odt modèle devrait insérer une image. (checker comment manipuler ça dans LibreOffice, puis générer en fonction).


Fichiers

Révisions associées

Révision 6ec13787 (diff)
Ajouté par Frédéric Péters il y a presque 7 ans

workflows: make it possible to replace odt images with variables (#16259)

This uses the "name" attribute of an image (in LibreOffice, double click
on the picture and go to the options tab to set it). It must be set to
a Python expression, prefixed with = (e.g. =form_var_image_raw).

The expression should return a wcs-file-like object (must have a
get_content() method). The replacement image mime type should be the
same as the original one.

Historique

#1

Mis à jour par Frédéric Péters il y a presque 7 ans

  • Assigné à mis à Frédéric Péters
#2

Mis à jour par Frédéric Péters il y a presque 7 ans

#4

Mis à jour par Benjamin Dauvergne il y a presque 7 ans

Ack.

#5

Mis à jour par Frédéric Péters il y a presque 7 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 6ec13787dd0a8e46d1ec8b1bddcc903e298c52ae
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu May 11 15:11:18 2017 +0200

    workflows: make it possible to replace odt images with variables (#16259)

    This uses the "name" attribute of an image (in LibreOffice, double click
    on the picture and go to the options tab to set it).  It must be set to
    a Python expression, prefixed with = (e.g. =form_var_image_raw).

    The expression should return a wcs-file-like object (must have a
    get_content() method).  The replacement image mime type should be the
    same as the original one.
#7

Mis à jour par Frédéric Péters il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF