0

i have a question, after i tried many version of bootstrap to use in dompdf laravel, there's no one can compatible. I've searching in other people same question as me, they said bootstrap 3.3.6 is compatible for dompdf laravel. But after i tried, it's not compatible too. Did anyone has solution maybe which bootstrap version compatible with dompdf laravel?

Note: i'm using laravel 8 and PHP 7.4

i've tried to using many bootstrap version but no one is compatible when i generate view into pdf

HTML

3
  • I recommend using wkhtmltopdf, (laravel package Laravel Snappy). Or you can copy the complete minified bootstrap CSS to another blade and include that in the header. That might work for dompdf. Commented Feb 27, 2023 at 3:52
  • Does this answer your question? dompdf dont load bootstrap css with barryvdh/laravel-dompdf Commented Feb 27, 2023 at 3:53
  • @AnujShrestha so is it no one bootstrap version compatible with dompdf? Commented Feb 27, 2023 at 4:51

1 Answer 1

0
Bootstrap 4 also works with DomPdf but it does not support Flexbox.
Sign up to request clarification or add additional context in comments.

1 Comment

This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.