From b293d27295ffc93b6fad5290c0e81df3be0d98a3 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 28 Sep 2026 16:00:39 +0530 Subject: [PATCH] removed mpdf and changed to tcpdf in sticker pdf service --- app/Services/StickerPdfService.php | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/app/Services/StickerPdfService.php b/app/Services/StickerPdfService.php index 969e15a..5d848ca 100644 --- a/app/Services/StickerPdfService.php +++ b/app/Services/StickerPdfService.php @@ -669,20 +669,12 @@ class StickerPdfService $ttfPath = storage_path('app/fonts/' . $font . '.ttf'); if (file_exists($ttfPath)) { - $fontName = pathinfo($ttfPath, PATHINFO_FILENAME); - - $mpdf = new \Mpdf\Mpdf([ - 'fontDir' => [ - dirname($ttfPath), - ], - 'fontdata' => [ - 'customfont' => [ - 'R' => basename($ttfPath), - ], - ], - ]); - - $font = 'customfont'; + $font = TCPDF_FONTS::addTTFfont( + $ttfPath, + 'TrueTypeUnicode', + '', + 32 + ); } else { $font = 'helvetica'; } -- 2.49.1