Last active
October 10, 2016 04:03
-
-
Save kasundm5566/b81fdb8c7a8461004340b53ccb1882f5 to your computer and use it in GitHub Desktop.
Configure Dompdf
This file contains 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 | |
include_once '../../dompdf/dompdf_config.inc.php'; // Relative path to the dompdf location | |
$dompdf = new DOMPDF(); | |
$dompdf->load_html("Hello World"); // Document content. HTML content can be placed here. | |
$dompdf->set_paper('A4', 'landscape'); // Page size | |
$dompdf->render(); // Generate PDF | |
$dompdf->stream("All_Halls_Yearly_Report.pdf", array("Attachment" => false)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment