just put a script like the one below at the beginning of your html body.
(you may remove the \ signs, I need them because of perl)
<script type="text/php">
if ( isset(\$pdf) ) {
\$w = \$pdf->get_width();
\$h = \$pdf->get_height();
\$font = Font_Metrics::get_font("helvetica", "bold");
\$size = 10;
\$text = "Seite: {PAGE_NUM} / {PAGE_COUNT}";
\$width = Font_Metrics::get_text_width("Seite: xxxx/xxxx", \$font, \$size);
// add page number on the bottom middle of the page
\$pdf->page_text((\$w - \$width), 16, \$text, \$font, \$size, array(0,0,0));
}
</script>
hope this helps,
Martin
Hi.
--
You received this message because you are subscribed to the Google Groups
"dompdf" group.
To post to this group, send email to dom...@googlegroups.com.
To unsubscribe from this group, send email to
dompdf+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/dompdf?hl=en.