diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php
index d84559eb459..c2a145f5e90 100644
--- a/htdocs/includes/odtphp/odf.php
+++ b/htdocs/includes/odtphp/odf.php
@@ -155,9 +155,9 @@ class Odf
'',
''
);
-
+
$this->vars[$tag] = $this->_replaceHtmlWithOdtTag($this->_getDataFromHtml($value), $customStyles, $fontDeclarations);
-
+
foreach ($customStyles as $key => $val) {
array_push($automaticStyles, '' . $val . '');
}
@@ -181,7 +181,7 @@ class Odf
$this->contentXml = str_replace('', $fonts . '', $this->contentXml);
}
else $this->vars[$tag] = preg_replace('/(\r\n|\r|\n)/i', "", $value);
-
+
return $this;
}
@@ -804,6 +804,7 @@ IMG;
// Export to PDF using LibreOffice
if ($conf->global->MAIN_ODT_AS_PDF == 'libreoffice')
{
+ // Install prerequisites: apt install soffice libreoffice-common libreoffice-writer libreoffice-java-common
// using windows libreoffice that must be in path
// using linux/mac libreoffice that must be in path
// Note PHP Config "fastcgi.impersonate=0" must set to 0 - Default is 1
@@ -840,7 +841,7 @@ IMG;
}
else
{
- // deprecated old method
+ // deprecated old method using odt2pdf.sh (native, jodconverter, ...)
$tmpname=preg_replace('/\.odt/i', '', $name);
if (!empty($conf->global->MAIN_DOL_SCRIPTS_ROOT))