changed logic in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Laravel Larastan / larastan (pull_request) Failing after 3m6s
Laravel Pint / pint (pull_request) Failing after 3m4s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Laravel Larastan / larastan (pull_request) Failing after 3m6s
Laravel Pint / pint (pull_request) Failing after 3m4s
This commit is contained in:
@@ -775,12 +775,17 @@ class StickerPdfService
|
||||
}
|
||||
}
|
||||
|
||||
// return $pdf->Output('sticker.pdf', 'S');
|
||||
$pdfContent = $pdf->Output('sticker.pdf', 'S');
|
||||
$pdfContent = $pdf->Output('', 'S'); // 'S' returns string
|
||||
|
||||
return (new Response($pdfContent, 200))
|
||||
->header('Content-Type', 'application/pdf')
|
||||
->header('Content-Disposition', 'inline; filename="sticker.pdf"');
|
||||
// Encode as base64
|
||||
return base64_encode($pdfContent);
|
||||
|
||||
// // return $pdf->Output('sticker.pdf', 'S');
|
||||
// $pdfContent = $pdf->Output('sticker.pdf', 'S');
|
||||
|
||||
// return (new Response($pdfContent, 200))
|
||||
// ->header('Content-Type', 'application/pdf')
|
||||
// ->header('Content-Disposition', 'inline; filename="sticker.pdf"');
|
||||
}
|
||||
|
||||
// private function hexToRgb($hex)
|
||||
|
||||
Reference in New Issue
Block a user