YetiForceCompany/YetiForcePDF

View on GitHub
examples/LongCellText.php

Summary

Maintainability
A
2 hrs
Test Coverage
<?php

$loader = require '../vendor/autoload.php';
$files = ['LongCellText'];
foreach ($files as $file) {
    $document = (new YetiForcePDF\Document())->init();
    $document->loadHtml(file_get_contents($file . '.html'));
    $time = microtime(true);
    $pdfFile = $document->render();
    echo microtime(true) - $time;
    file_put_contents($file . '.pdf', $pdfFile);
}