Replies: 3 comments
-
You can try to add |
Beta Was this translation helpful? Give feedback.
0 replies
-
Has anyone been able to fix this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sometime if you have image then you need to convert the image to base64. Converting to base64
Generation of base64 Using base64 in blade |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am currently trying to get a PDF of a blade view created. I am working with TailwindCSS there. The problem is, when I work with "npm run dev" there are no problems generating the PDF. However, as soon as I create the CSS files with "npm run build", there are problems. The page loads dead.
"resources/views/pdf/document.blade.php":
"app/Http/Controllers/PrintController.php":
Once I had an error message in the logs. There it was described that the "old" headless mode is/can not be used anymore. But I could not reproduce the error yet. Does anyone have a tip what I can do?
EDIT:
I managed to reproduce the error. This is an excerpt from the Laravel log file.:
That's the message I get from Laravel. As already written, this only happens when I used "npm run build" to create the CSS files.
I understand the error from the log that there was a strong change in the new version of Puppeteer. How can I solve the problem? First consideration would be to use an older version, but whether that makes sense?
EDIT 2:
My current workaround is to take the CSS file directly from the CDN and do my TailwindCSS settings directly in the file. But can not be the final solution.
Thanks a lot!
Greetings,
Björn
Beta Was this translation helpful? Give feedback.
All reactions