SALES PD PDF PAGENUM AND COUNT

This commit is contained in:
Raj-at-840620226347 2020-02-29 17:10:00 +05:30
parent 5cbc75c2b2
commit 6251782549

View File

@ -35,9 +35,10 @@ class Pdfgenerator
//echo $total.'TOT';
//$font = Font_Metrics::get_font("helvetica", "bold");
$font = null;
//$font = null;
$font = $dompdf->getFontMetrics()->get_font("helvetica");
// echo "{PAGE_NUM}";
$canvas->page_text(515,760, "Page {PAGE_NUM} of {PAGE_COUNT}", $font,8, array(0,0,0));
$canvas->page_text(515,760, "Page {PAGE_NUM} of {PAGE_COUNT}", $font,10, array(0,0,0));
//echo "{PAGE_NUM}";
// if($total == "{PAGE_NUM}")
// {