Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fernandoboueres's avatar

Laravel 10 PDF Packages

Hi! I need a PDF package to work with Tailwind and Vite. I tried Laravel DOMPDF but I need something more easy, that can just load the view and output as PDF. Also tried Browsershot, but I couldn't make it work

0 likes
5 replies
fernandoboueres's avatar

@jlrdw The deadline for the module that generates the PDF is for tomorrow (started this week), I already told them that is not possible.

shadkamel's avatar

i tried before, there is an issue using tailwind in dompdf, because of the big size of the css file that that mount that the dompdf expected, the dompdf can't wait to load that large size css file so it causes problem, i know that css file that tailwindcss generated is not large to slow a browser, but the dom pdf is not wait for is to load, so the best way is using a special css file for pdf just like that link that @jlrdw suggested to look at

fernandoboueres's avatar

@shadkamel This also happened to me, I sold as a solution to add time for the load but I don't think is a good trade

Please or to participate in this conversation.