planpc wrote:
In my case, i have installed dolibarr in my hosting, so i don have access to linux for do that.
Do you think is it possible that Dolibarr creates a PDF from my modified ODT only using PHP?, if yes, it will make me very happy
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).
You can find a summary of what I found here:
http://www.dolibarr.org/forum/11-suggest-new-features/21235-an-easy-way-to-modify-pdf-templates
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.
↧