removed mpdf and changed to tcpdf in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 4m35s
Laravel Larastan / larastan (pull_request) Failing after 5m5s

This commit is contained in:
dhanabalan
2026-09-28 16:00:39 +05:30
parent e48a006480
commit b293d27295

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';
} }