Created
September 12, 2017 20:31
-
-
Save akerouanton/458f7dd6a500fd0165d7cd0455026a1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
$snappy = new \Knp\Snappy\Pdf('/home/knplabs/.config/composer/vendor/bin/wkhtmltopdf-amd64'); | |
for ($i = 0; $i < 1500; $i++) { | |
$snappy->generateFromHtml('<html>aze</html>', tempnam('/tmp/out/repro235', $i), ['page-size' => 'A4', 'footer-right' => 'Page [page] of [toPage]'], true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment