developer
<?php $loader = require '../vendor/autoload.php'; $document = (new YetiForcePDF\Document())->init(); $document->loadHtml(file_get_contents('Invoice.html')); $pdfFile = $document->render(); file_put_contents('Invoice.pdf', $pdfFile);