From 6251782549753887b4d4fdcc675b4e9e1e53060d Mon Sep 17 00:00:00 2001 From: Raj-at-840620226347 Date: Sat, 29 Feb 2020 17:10:00 +0530 Subject: [PATCH] SALES PD PDF PAGENUM AND COUNT --- api/application/libraries/Pdfgenerator.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/application/libraries/Pdfgenerator.php b/api/application/libraries/Pdfgenerator.php index 47f81cf2..f26d384e 100644 --- a/api/application/libraries/Pdfgenerator.php +++ b/api/application/libraries/Pdfgenerator.php @@ -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}") // {