mpdf
mpdf copied to clipboard
Support for flex-box elements
I have this problem/would like to have this functionality
Is there any support for flex-box elements? I browsed the 6.1 documentation with no avail. Is there any milestone on this?
These are mPDF and PHP versions I am using
mPDF 6.1 & mPdf 7.0Beta PHP 7.1
This is a HTML code snippet I use
<style>
header {display: flex; justify-content: space-between; align-items: center; align-content: stretch;}
</style>
<header>
<div class="items">First item</div>
<div class="items">Second item</div>
<div class="items">Third item</div>
</header>
No, there is no milestone and no plan to support this ATM.
How does it looks now?
Would be really helpfull to use flexbox instead using old dirty ways.
There is no milestone and no plan to support this ATM.
Need it too !
Need it too
Proposals are welcome! But please use the 👍 button for this kind of feedback.
How can we help in order to implement Flexbox and CSS Grid layout
Where is the donate button for this feature?
+1
Any ATM for this?
No.
+1
+1
Your +1 comments are just spamming the thread and won't get this done any faster.
Is it possible to know if there's chance that this would ever be supported? Perhaps a vague timeline? Or should we look elsewhere?
As an open source project, if any developer wants to put in the time and effort to add support for it, sure, there's a chance.
Honestly, if you're looking for state-of-the art CSS support, mirroring existing HTML pages in PDF, use headless Chrome.
The HTML-handling code in mPDF is quite old and fragile and complicated, maybe to the extent that writing it from scratch might be faster than trying to understand it and not breaking anything while implementing something so extensive as flex-box support.
Use mPDF if you want to leverage some of its benefits over browser approach - color handling, pre-print, barcodes support, headers and footers, page numbering, TOCs, etc. But beware that a HTML/CSS template tailored for mPDF might be necessary.
Got it, thanks!
Any update on this?
@nijatmursali What do you think?
@nijatmursali What do you think?
It still does not work, last comment was in 2019 which is 3 years before, so just asking if we gonna have any update on this in near future?
The last comment from 2019 was not updated with any new information, therefore it is still valid.
((