PHP code example of mrofi / o2pdf
1. Go to this page and download the library: Download mrofi/o2pdf 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/ */
mrofi / o2pdf example snippets
` php
fice = new O2Pdf\OfficeToPdf('absolute/url/to/office/file/online');
$pdfUrl = $office->getPdfUrl();
header('location: '.$pdfUrl);
// or
// var_dump($pdfUrl);