mpdf icon indicating copy to clipboard operation
mpdf copied to clipboard

Support for flex-box elements

Open pmpr opened this issue 7 years ago • 24 comments

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>

pmpr avatar May 13 '17 12:05 pmpr

No, there is no milestone and no plan to support this ATM.

finwe avatar May 14 '17 07:05 finwe

How does it looks now?

Would be really helpfull to use flexbox instead using old dirty ways.

honsa avatar Oct 31 '17 14:10 honsa

There is no milestone and no plan to support this ATM.

finwe avatar Oct 31 '17 14:10 finwe

Need it too !

altamer avatar Jan 13 '18 19:01 altamer

Need it too

nelsonzacharia avatar Feb 04 '18 06:02 nelsonzacharia

Proposals are welcome! But please use the 👍 button for this kind of feedback.

Klap-in avatar Feb 04 '18 14:02 Klap-in

How can we help in order to implement Flexbox and CSS Grid layout

orl99 avatar Jun 21 '18 17:06 orl99

Where is the donate button for this feature?

jmartsch avatar Oct 17 '18 09:10 jmartsch

+1

traktorlixach avatar Nov 02 '18 09:11 traktorlixach

Any ATM for this?

ThaDaVos avatar May 01 '19 09:05 ThaDaVos

No.

finwe avatar May 01 '19 10:05 finwe

+1

web-assistant avatar May 22 '19 15:05 web-assistant

+1

Gixien avatar Jul 02 '19 08:07 Gixien

Your +1 comments are just spamming the thread and won't get this done any faster.

finwe avatar Jul 09 '19 21:07 finwe

Is it possible to know if there's chance that this would ever be supported? Perhaps a vague timeline? Or should we look elsewhere?

ceagon avatar Jul 10 '19 03:07 ceagon

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.

jakejackson1 avatar Jul 10 '19 04:07 jakejackson1

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.

finwe avatar Jul 10 '19 06:07 finwe

Got it, thanks!

ceagon avatar Jul 10 '19 06:07 ceagon

Any update on this?

nijatmursali avatar Mar 29 '23 13:03 nijatmursali

@nijatmursali What do you think?

finwe avatar Mar 29 '23 13:03 finwe

@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?

nijatmursali avatar Mar 29 '23 13:03 nijatmursali

The last comment from 2019 was not updated with any new information, therefore it is still valid.

finwe avatar Mar 29 '23 13:03 finwe

((

tajweb avatar Apr 11 '23 05:04 tajweb