I need a little help converting a html page into a PDF document using html2pdf
Their site gives a small example
$content = "
<page>
<h1>Exemple d'utilisation</h1>
<br>
Ceci est un <b>exemple d'utilisation</b>
de <a href='http://html2pdf.fr/'>HTML2PDF</a>.<br>
</page>";
require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','fr');
$html2pdf->WriteHTML($content);
$html2pdf->Output('exemple.pdf');`
What I dont know how to do most effectively is make my html page that has a few PHP variables in it into a variable I can use here $html2pdf->WriteHTML($content);
is there a way to pull it from its own html file and have the server replace the variables and then make it a variable?