PHP code example of lukaswhite / document-converter
1. Go to this page and download the library: Download lukaswhite/document-converter 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/ */
lukaswhite / document-converter example snippets
use Lukaswhite\DocumentConverter\Converter;
$converter = new Converter('/path/to/document.doc');
$converter->toPDF();
$result = $converter->toPDF();
$result->getFilepath(); // e.g. /path/to/document.pdf
$result->getFilename(); // e.g. document.pdf
$result->getExtension(); // e.g. pdf
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.