May Sale! All accounts are 40% off this week.

luayjal's avatar

Do any pdf packages are support the css3 (flex box)

Do any pdf packages support the css3 (flexbox, position) for PHP larval ??

0 likes
5 replies
Sinnbeck's avatar

I think puppeteer js does. Laravel browsershot uses that

webrobert's avatar

Yeah, I was just working on this topic. It's lame. For anyone else that finds this..

the barry domPDF package uses mainly mpdf, PDFLib here are the supported styles for mpdf. not flex nor does PDFLib, And I haven't found supported styles list PDFLib. Bueler?

I wonder about using Prince from the command line to generate a pdf in Laravel. Haven't tried yet. It seems to support flex and the @page properties I was looking for... https://www.princexml.com/doc/css-refs/#__docusaurus

Sinnbeck's avatar

@webrobert really interesting find. I hope you will let us know how prince works out. Never seen a php wrapper for it. Might be good. Did you try browsershot? It has rendered everything I have thrown at it (but it haven't been that advanced)

1 like

Please or to participate in this conversation.