removed mpdf and changed to tcpdf in sticker pdf service #1109

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-28 10:30:53 +00:00

View File

@@ -669,20 +669,12 @@ class StickerPdfService
$ttfPath = storage_path('app/fonts/' . $font . '.ttf'); $ttfPath = storage_path('app/fonts/' . $font . '.ttf');
if (file_exists($ttfPath)) { if (file_exists($ttfPath)) {
$fontName = pathinfo($ttfPath, PATHINFO_FILENAME); $font = TCPDF_FONTS::addTTFfont(
$ttfPath,
$mpdf = new \Mpdf\Mpdf([ 'TrueTypeUnicode',
'fontDir' => [ '',
dirname($ttfPath), 32
], );
'fontdata' => [
'customfont' => [
'R' => basename($ttfPath),
],
],
]);
$font = 'customfont';
} else { } else {
$font = 'helvetica'; $font = 'helvetica';
} }