Sample codes below. When I run the first code I am getting notices like : PHP Notice: Undefined index: C1 in lib/class.pdf.php on line 1213
I am generating PDF seperate and combine it using pdftk.
First PDF generating code
<?php
ob_start();
?>
<html>
<body style="margin:0; padding:0;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="84" ><a href="#C1">C1</a></td>
</tr>
<tr>
<td height="84" ><a href="#C2">C2</a></td>
</tr>
<tr>
<td height="84" ><a href="#C3">C3</a></td>
</tr>
<tr>
<td height="84" ><a href="#C4">C4</a></td>
</tr>
</table>
</body>
</html>
<?php
$contents = ob_get_contents();
ob_end_clean();
require_once("dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html($contents);
$dompdf->set_paper('letter', 'landscape');
$dompdf->render();
$dest_file = "hyper1.pdf";
$pdf = $dompdf->output();
file_put_contents($dest_file, $pdf);
?>