I render simply inner HTML via phpwkhtmltopdf, but I have a problem with QR code.
<?php ini_set("memory_limit", "128M"); ini_set('display_errors', '1'); error_reporting(E_ALL); require __DIR__ . '/wkhtmltopdf/autoload.php'; require_once ('phpqrcode-master/qrlib.php'); use mikehaertl\wkhtmlto\Pdf; $svg_QR_Code = QRcode::svg('PHP QR Code :)'); $pdf = new Pdf; $pdf->addPage(' <html> <head> </head> <body> <div id="qr-picture">' .$svg_QR_Code. ' </div> </body> </html> ');
1) problem is, that the QRcode image is rendered even if I not use the variable
2) and unfortunately is rendered the QR image only without my html
Thank You
Log in to post a comment.
I render simply inner HTML via phpwkhtmltopdf, but I have a problem with QR code.
1) problem is, that the QRcode image is rendered even if I not use the variable
2) and unfortunately is rendered the QR image only without my html
Thank You