Project

General

Profile

Actions

Fonctionnalité #32873

closed

Remplacement alternatif de la librairie Unoconv par LibreOffice

Added by Agnes GASTAMBIDE about 1 month ago. Updated about 1 month ago.

Status:
R&D - Terminé
Priority:
2-Sérieux
Target version:
Start date:
03/17/2025
Due date:

Description

Suite à l'analyse #32540, je propose de remplacer progressivement la librairie Unoconv par LibreOffice pour la conversion des documents en PDF.

## Proposition

Afin d'éviter tout breaking change ou erreurs potentielles non encore identifiées, nous procéderons par étapes :

1. **Ajout d’un paramètre technique** :  
   Un paramètre sera intégré dans la configuration JSON pour activer l’utilisation de LibreOffice lors des conversions.

2. **Transition progressive** :  
   Dans un premier temps, LibreOffice sera utilisé en parallèle d'Unoconv, selon la configuration choisie.

3. **Migration complète** :  
   Pour la version majeure **25.0.0** (ticket à créer), Unoconv sera complètement retiré au profit de LibreOffice.

Choix du mode de conversion déterminé à partir du paramètre ajouté dans la configuration json


Files

convertDocxToPdf.sh.txt (3.16 KB) convertDocxToPdf.sh.txt Script SHELL Nicolas COUTURE, 03/06/2025 03:05 PM
TempsMoyenConversion.png (64.6 KB) TempsMoyenConversion.png Temps moyen de conversion Nicolas COUTURE, 03/06/2025 03:41 PM
UtilisationRAMMoyenne.png (68.2 KB) UtilisationRAMMoyenne.png Utilisation moyenne de la RAM Nicolas COUTURE, 03/06/2025 03:41 PM
TempsDeConversionPoids.png (117 KB) TempsDeConversionPoids.png Temps de conversion selon le poids du fichier Nicolas COUTURE, 03/06/2025 03:41 PM
TempsDeConversionPages.png (116 KB) TempsDeConversionPages.png Temps de conversion selon le nombre de pages Nicolas COUTURE, 03/06/2025 03:42 PM
UtilisationRAMPages.png (116 KB) UtilisationRAMPages.png Utilisation de la RAM selon le nombre de pages Nicolas COUTURE, 03/06/2025 03:43 PM
soffice - SFD - MWS Express - Back.pdf (152 KB) soffice - SFD - MWS Express - Back.pdf Fichier résultat soffice Nicolas COUTURE, 03/06/2025 04:55 PM
SFD - MWS Express - Back.docx (231 KB) SFD - MWS Express - Back.docx Fichier originel DOCX Nicolas COUTURE, 03/06/2025 04:55 PM
unoconv - SFD - MWS Express - Back.pdf (155 KB) unoconv - SFD - MWS Express - Back.pdf Fichier résultat unoconv Nicolas COUTURE, 03/06/2025 04:55 PM

Related issues 2 (0 open2 closed)

Related to Backlog Courrier - Fonctionnalité #32951: Rajout du timeout à la ligne de commande de conversion par LibreofficeR&D - TerminéNicolas COUTURE03/25/2025Actions
Copied from Backlog Courrier - Fonctionnalité #32636: Analyse : POC Remplacement partiel de la librairie Unoconv par LibreOfficeR&D - TerminéNicolas COUTURE02/25/2025Actions
Actions #1

Updated by Agnes GASTAMBIDE about 1 month ago

  • Copied from Fonctionnalité #32636: Analyse : POC Remplacement partiel de la librairie Unoconv par LibreOffice added
Actions #2

Updated by Agnes GASTAMBIDE about 1 month ago

  • Assignee deleted (Agnes GASTAMBIDE)
Actions #3

Updated by Agnes GASTAMBIDE about 1 month ago

  • Description updated (diff)
Actions #4

Updated by Agnes GASTAMBIDE about 1 month ago

  • Status changed from R&D - A étudier to R&D - A planifier
Actions #5

Updated by Joseph AKEL about 1 month ago

  • Status changed from R&D - A planifier to R&D - En cours
Actions #6

Updated by Agnes GASTAMBIDE about 1 month ago

  • Status changed from R&D - En cours to R&D - A planifier
Actions #8

Updated by Agnes GASTAMBIDE about 1 month ago

  • Status changed from R&D - A planifier to R&D - En cours
Actions #9

Updated by Jean-Laurent DUZANT about 1 month ago

  • Assignee set to Jean-Laurent DUZANT
Actions #10

Updated by GIT LAB about 1 month ago

[CREATION] MR feat/32873/24.x.x (cible main) par Jean-Laurent DUZANT

https://labs.maarch.org/devteam/maarch-courrier-dev/-/merge_requests/449

Actions #11

Updated by Jean-Laurent DUZANT about 1 month ago

  • Status changed from R&D - En cours to R&D - En test
Actions #12

Updated by Jean-Laurent DUZANT about 1 month ago · Edited

Sous Ubuntu 22.04.5 LTS, j'ai testé avec la version suivante (la plus récente pour Ubuntu 22.04) :

libreoffice --version  
LibreOffice 7.3.7.2 30(Build:2)  

soffice --version  
LibreOffice 7.3.7.2 30(Build:2)  
Actions #13

Updated by Nicolas COUTURE about 1 month ago

Un nouveau paramètre a été ajouté dans le fichier de configuration général de MaarchCourrier (config.json) :

  • isLegacyConversionEnable : booleen

Si true : utilisation de unoconv
Si false: utilisation de libreoffice

Actions #14

Updated by Joseph AKEL about 1 month ago

  • Status changed from R&D - En test to R&D - Terminé
Actions #15

Updated by Nicolas COUTURE 30 days ago

  • Related to Fonctionnalité #32951: Rajout du timeout à la ligne de commande de conversion par Libreoffice added
Actions

Also available in: Atom PDF