mrofi/o2pdf

API to convert office files to PDF directly

v1.1.1 2016-08-17 09:52 UTC

This package is auto-updated.

Last update: 2024-11-07 17:06:27 UTC


README

API to convert office files to PDF directly

How to

    composer require mrofi/o2pdf
    require 'vendor/autoload.php';

    $office = new O2Pdf\OfficeToPdf('absolute/url/to/office/file/online');
    $pdfUrl = $office->getPdfUrl();
    header('location: '.$pdfUrl);
    // or
    // var_dump($pdfUrl);