Created
September 12, 2017 20:31
-
-
Save akerouanton/b9fa8426425a02c5b53cfd75e24ffac1 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'); | |
| $snappy->generateFromHtml('<html>aze</html>', '/tmp/out/repro216.pdf', ['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