dompdf class problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I extremely sorry, if my topic isn't related with this group. I apologizes
for this.

I'm trying to add page number on the pdf. I have try the below code.
but couldn't get the page number at the pdf.
where I'm doing wrong. please suggest me.
<?php
require_once("dompdf_config.inc.php");

$dompdf = new DOMPDF();

$html = '<html><body>';
$html .='<script type="text/php">
                        $font = Font_Metrics::get_font("verdana", "bold");
                        $dompdf->page_text(200, 16, "{PAGE_NUM} of
{PAGE_COUNT}", $font,
10, array(0,0,0)); </script>';
$html .=  '</body></html>';
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
?>

regards,
saeed

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux