Answer the question
In order to leave comments, you need to log in
What php library would you recommend for working with odt?
what is needed:
take the odt template, replace the variables in it with values, save without knocking down the formatting.
Answer the question
In order to leave comments, you need to log in
Used here such piece of OpenTBS for substitution of the data in xlsx
It and with odt and with docx is able to work.
It seemed quite convenient, at least compared to other solutions that I managed to look at.
odt is a zip archive that, among other things, contains content.xml - directly text, add $ {variabe} tags to it and feed it to smarty - that's the template.
str_replace, In your case, it doesn't matter what file format, the main thing. so that there are unique placeholders that can be replaced.
github.com/search?l=PHP&q=odt&ref=commandbar&type=Repositories
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question