# ODT 2 PDF

**URL:** <https://www.dolibarr.org/forum/t/odt-2-pdf/17414>\
**Category:** Using my Dolibarr\
**Created:** [March 7, 2019, 12:59pm UTC](https://www.dolibarr.org/forum/t/odt-2-pdf/17414 "2019-03-07T12:59:00Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![umigun](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/umigun/32/7276_2.png) [@umigun](https://www.dolibarr.org/forum/u/umigun)\
**Post date:** [June 20, 2022, 5:41am UTC](https://www.dolibarr.org/forum/t/odt-2-pdf/17414/16 "2022-06-20T05:41:20Z")

</div>

hello, i have the same problem.  
The conversion completes when I test it on the server. but after creating ODT file in dolibarr it comes with .odt extension.  
I still haven’t been able to solve the problem.  
**thank you for your help**

> Doli version : 14.0.2  
> Server : Centos 7 - Cpanel/Whm  
> host: PHP version 7.4

I tried this solution published by ### **[h6585](https://github.com/h6585)**. (of course all other solutions didn’t work)

[https://github.com/Dolibarr/dolibarr/issues/10896](https://github.com/Dolibarr/dolibarr/issues/10896)  
**MAIN\_DOL\_SCRIPTS\_ROOT** = /home/xx/public\_html/erp/scripts/odt2pdf/  
**MAIN\_ODT\_AS\_PD** F = pyodconverter

 ![Screenshot_3](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/6d5f5302512376ec7583b0142694c114e017887d.jpeg)

file dir : /home/xx/public\_html/erp/scripts/odt2pdf

[odt2pdf.zip](https://www.dolibarr.org/forum/uploads/short-url/yD48oW4vBGOrToEOsDyGDlUSAPV.zip) (5.4 KB)

Host PHP-FPM setttings: exec,pasthru,shell\_exec, system = allow

**Server test:**  
[root@server1 odt2pdf]# ./odt2pdf.sh test pyodconverter  
[root@server1 odt2pdf]#  
result:  
[root@server1 odt2pdf]# ls  
DocumentConverter.py odt2pdf.sh #old\_odt2pdf.sh test.odt **test.pdf**  
[root@server1 odt2pdf]#  
**here the function does not work!**

 ![Screenshot_1](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/e/eb02f50e42f9c6a92cae93205c7e9ce6e2373e46.jpeg)

---

_[View the full topic](https://www.dolibarr.org/forum/t/odt-2-pdf/17414)._
