Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'libs/dompdf/autoload.inc.php';
- // reference the Dompdf namespace
- use Dompdf\Dompdf;
- // instantiate and use the dompdf class
- $dompdf = new Dompdf();
- $dompdf->loadHtmlFile("generation_feuille_mission.php?id=2");
- // (Optional) Setup the paper size and orientation
- $dompdf->setPaper('A4', 'landscape');
- // Render the HTML as PDF
- $dompdf->render();
- // Output the generated PDF to Browser
- $dompdf->stream();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement