# ODT to PDF error

**URL:** <https://www.dolibarr.org/forum/t/odt-to-pdf-error/30036>\
**Category:** Using my Dolibarr\
**Tags:** Linux, Issue\
**Created:** [March 1, 2025, 2:07pm UTC](https://www.dolibarr.org/forum/t/odt-to-pdf-error/30036 "2025-03-01T14:07:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![truefriend-cz](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/7feea3/32.png) [@truefriend-cz](https://www.dolibarr.org/forum/u/truefriend-cz)\
**Post date:** [March 1, 2025, 2:07pm UTC](https://www.dolibarr.org/forum/t/odt-to-pdf-error/30036/1 "2025-03-01T14:07:09Z")

</div>

Hi,

i want convert ODT (LibreOffice document) to PDF invoice.  
My steps for realize:

1. apt-get update && apt-get install -y unoconv
2. accept install LibreOffice
3. add param: MAIN\_ODT\_AS\_PDF → unoconv
4. Run generate invoice
5. ended error:  
ODT to PDF convert fail (option MAIN\_ODT\_AS\_PDF is unoconv, command was unoconv /www/wwwroot/dolibarr/documents/facture/IN2503-0001/IN2503-0001\_T-001.odt, retval=6)

How i can fix?

Ater command:  
libreoffice --version  
i get:  
LibreOffice 7.4.7.2 40(Build:2)

Actually version LibreOffice is 25.x

Please how i can fix this?

(manually install version 25.x is not solution, but missing .so packages and command “unoconv” not recognized)

Dolibarr versio: 20.0.4  
Linux: Debian 12
