PHP code example of michaeld555 / pdf-converter
1. Go to this page and download the library: Download michaeld555/pdf-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/ */
michaeld555 / pdf-converter example snippets
use Michaeld555\Converter;
Converter::docx_to_pdf('https://example.com/file.docx', 'path_to_file/');
if (file_exists('path_to_file/file.pdf')) {
echo "the file was converted successfully";
} else {
echo "an error occurred during the file conversion";
}