load_html($_POST["html"]); $dompdf->set_paper($_POST["paper"], $_POST["orientation"]); $dompdf->render(); $dompdf->stream("dompdf_out.pdf"); exit(0); } ?>
Below are some sample files. The PDF version is generated on the fly by dompdf. (The source HTML & CSS for these files is included in the test/ directory of the distribution package.)
Enter your html snippet in the text box below to see it rendered as a PDF: (Note by default, remote stylesheets, images & are disabled.)
(Note: if you use a KHTML based browser and are having difficulties loading the sample output, try saving it to a file first.)