From 454286ca03cdd108c5884986c399a73ba8847a8c Mon Sep 17 00:00:00 2001 From: iIronside Date: Mon, 21 Nov 2022 15:32:02 +0300 Subject: [PATCH] fix footer --- .../card/controllers/UserCardController.php | 48 +++++++------------ 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/backend/modules/card/controllers/UserCardController.php b/backend/modules/card/controllers/UserCardController.php index ccc5cc3..8ca3092 100755 --- a/backend/modules/card/controllers/UserCardController.php +++ b/backend/modules/card/controllers/UserCardController.php @@ -309,38 +309,24 @@ class UserCardController extends Controller $pdf = new Pdf(); $mpdf = $pdf->api; - if (!pathinfo($resumeTemplate->header_image, PATHINFO_EXTENSION)) { - $mpdf->SetHeader($headerText); - } else { - $imagePath = Yii::getAlias('@frontend') . '/web' . $resumeTemplate->header_image; - $mpdf->setAutoTopMargin='stretch'; - $mpdf->SetHTMLHeader( - "
-

$headerText

-
" - ); - } - - -// $mpdf->SetHTMLHeader(" -//
-// -// -// -//
$headerText
-// "); - -// $mpdf->SetHTMLFooter(" -//
-// -// -// -//
$footerText{PAGENO}
-// "); + $mpdf->setAutoTopMargin='stretch'; + $mpdf->SetHTMLHeader(" +
+ + + +
$headerText
+ "); + $mpdf->SetHTMLFooter(" +
+ + + +
$footerText{PAGENO}
+ "); $mpdf->WriteHTML("
$userCard->resume_text
"); - $mpdf->SetFooter('{PAGENO}'); $mpdf->Output("Resume - {$userCard->fio}", 'D'); // call the mpdf api output as needed exit;