markocupic/cloudconvert-bundle

Cloudconvert helper classes

1.0.4 2019-06-13 20:49 UTC

This package is auto-updated.

Last update: 2021-01-14 00:56:08 UTC


README

Get your free API key for using the Cloudconvert PHP API: Free Plan Cloudconvert

DocxToPdfConversion

Convert MS Word files int pdf files, using the Cloudconvert PHP API.

$destFilename = 'files/mswordfile.docx';

$objConversion = new \Markocupic\CloudconvertBundle\Services\DocxToPdfConversion($destFilename, Config::get('cloudconvertApiKey'));
$objConversion->sendToBrowser(true)->createUncached(false)->convert();