Xportability / css-to-pdf

Convert any HTML page or region to PDF - supports CSS, SVG, embedded XML objects, and more..
http://www.cloudformatter.com/CSS2Pdf
207 stars 77 forks source link

Flexbox support? #61

Closed jewbetcha closed 7 years ago

jewbetcha commented 7 years ago

Any plans or workarounds to support flexbox styles?

kbrown01 commented 7 years ago

I am afraid not. There is good reason, flexing box grids when combined with pagination are not possible to do. Technically speaking in order to compose properly, the grid would have to be broken apart and flowed into grids of fixed height -- the height of a page. There is no simple (or even difficult) solution to such things. HTML and browsers are fine because they do not comprehend pagination -- or even worse --- different pagination size and flow requirements based on page positions within a flow (first, last, middle and left/right pages).