Hi marcelo, thanks for you usefull suggestion!
A question: i use dolibarr on windows, i need to install jodconverter and the Openoffice’s script also on windows?
Can you help me make it working also on windows?
Thanks in advance
i visit that link before made this question, but it is for creatin a PDF template using PHP, I´m not a programmer, so it is not for me
I´m looking for somethin really simple for me or other users.
Sorry if my question was not correctry made, what i will like to do is that Dolibarr could print in a PDF, my ready modified template ODT, if is possible.
Imagine the one you share in the first post (http://www.comdesk.com.br/downloads/template_invoice.odt) or some other similar, that anybody could modify, text, color, etc., without knowing PHP and make the default template. It will be perfect, and much more easier to customice than any desktop application here, in Spain.
Indeed this kind of ODT->PDF transformation only works by calling a binary, so this doesn’t work on shared hosts (most websites hosts in fact).
I have already searched on the subject (how to transform ODT to PDF only by using PHP), but there is no quick solution as of today.
But there are a few new libraries which can give us hope, but then you would need to rewrite a whole library interface for Dolibarr (because these libraries can’t know where are the variables to change, the current ODT generator works in a similar way as an interface between Dolibarr and the odtphp library).
Anyway, don’t expect this solution to be released soon (if ever): it would be a lot of work for very little advantage (because you can just make a PDF template using PHP, or convert your ODT document by yourself on your computer, Microsoft Office and LibreOffice both offer this functionality natively).
/EDIT: I think I have found a solution. I will keep you guys updated on this when I’ll work on it in June.