23 lines
370 B
PHP
23 lines
370 B
PHP
<?php
|
|
require_once('html2fpdf.php');
|
|
// activate Output-Buffer:
|
|
ob_start();
|
|
?>
|
|
<html><head>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
// Output-Buffer in variable:
|
|
$html=ob_get_contents();
|
|
// delete Output-Buffer
|
|
ob_end_clean();
|
|
$pdf = new HTML2FPDF();
|
|
$pdf->DisplayPreferences('HideWindowUI');
|
|
$pdf->AddPage();
|
|
$pdf->WriteHTML($html);
|
|
6/7;
|
|
$pdf->Output('doc.pdf','I');
|
|
?>
|