PHP code example of anynone / odtphp
1. Go to this page and download the library: Download anynone/odtphp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anynone / odtphp example snippets
$odf = new Odtphp\Odf("account_1.odt");
$odf->setVars("message", "test1111");
$odf->saveToDisk('account_1_over.odt');