Primo commit: trasferimento del progetto PPEasy
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
// Include l'autoloader di Dompdf
|
||||
require_once '../vendor/autoload.php';
|
||||
// reference the Dompdf namespace
|
||||
use Dompdf\Dompdf;
|
||||
|
||||
// instantiate and use the dompdf class
|
||||
$dompdf = new Dompdf();
|
||||
$dompdf->loadHtml('hello world');
|
||||
|
||||
// (Optional) Setup the paper size and orientation
|
||||
$dompdf->setPaper('A4', 'portrait');
|
||||
|
||||
// Render the HTML as PDF
|
||||
$dompdf->render();
|
||||
|
||||
// Output the generated PDF to Browser
|
||||
$dompdf->stream();
|
||||
Reference in New Issue
Block a user