ManageMyMoves Posted October 24 Share Posted October 24 I have a requirement to load a Libre Writer odt that I created locally onto a Linux server. This document eg. An invoice template can then be read by php and data inserted. The document will have 'tags' in it eg. #InvoiceNumber# and the data supplied as an array or json inserted in the appropriate places. eg. "InvoiceNumber" => "012345" There would also be a need to be able to insert a block of data ( for invoice lines ). Currently I process the block as a separate routine which is fine The completed document can then be saved on the server or downloaded to the users PC Does anyone know of a class /module / API that would do this? Many thanks Quote Link to comment Share on other sites More sharing options...
Solution maxxd Posted October 24 Solution Share Posted October 24 Check out https://github.com/PHPOffice/PHPWord. It's not automatic - you'll still need to code, but it's a library to make it easier to do. Quote Link to comment Share on other sites More sharing options...
ManageMyMoves Posted October 25 Author Share Posted October 25 Cheers Just what I was looking for! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.