From de95a3f7981ffdc76cf37b9339cdb0464050819e Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 9 Feb 2021 13:14:26 +0530 Subject: Update the FPDF version --- pdf/generate_pdf.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf/generate_pdf.inc') diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc index 75406f9..43d35f5 100755 --- a/pdf/generate_pdf.inc +++ b/pdf/generate_pdf.inc @@ -27,7 +27,7 @@ function generate_lm_pdf() } //!$pdf $pdf->AddPage(); $image_bg = $mpath . "/pdf/images/bg.png"; - $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h); + $pdf->Image($image_bg, 0, 0, $pdf->GetPageWidth(), $pdf->GetPageHeight()); $pdf->Rect(5, 5, 267, 207, 'D'); //For A4 $pdf->SetMargins(18, 1, 18); $pdf->Line(7.0, 7.0, 270.0, 7.0); @@ -191,7 +191,7 @@ function generate_lm_pdf() } //!$pdf $pdf->AddPage(); $image_bg = $mpath . "/pdf/images/bg.png"; - $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h); + $pdf->Image($image_bg, 0, 0, $pdf->GetPageWidth(), $pdf->GetPageHeight()); $pdf->Rect(5, 5, 267, 207, 'D'); //For A4 $pdf->SetMargins(18, 1, 18); $pdf->Line(7.0, 7.0, 270.0, 7.0); -- cgit