You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for the fantastic work on Weasyprint, I've been using it (with django) for a couple of years now, it's very simple to use and I've been able to work around the unsupported features without an issue so far.
A layout that is used frequently on a website I'm working on is a grid of images. It's flexible (the user can choose to display between 1 and 4 images per line).
I want to print these views in a PDF through weasyprint. As of now, these views are laid out in a flexbox pattern. As I gather from the doc and github issues, flexbox is not totally supported by weasyprint, including page-breaks (the content just overflows in the same page and disappears at the bottom).
I tried a grid layout, which does support page-break but not the grid layout itself (each image take up all the width of the page, the property grid-template-columns is not supported.
Is there something I missed? Do you guys suggest a workaround or a better way to do this? Is the work to make weasyprint compatible with that a lot of work (considering I haven't contributed to such a project yet, so I'm trying to figure out whether it'd be a smart move to help out on this or just an impossible task)?
Hi,
First of all, thanks for the fantastic work on Weasyprint, I've been using it (with django) for a couple of years now, it's very simple to use and I've been able to work around the unsupported features without an issue so far.
A layout that is used frequently on a website I'm working on is a grid of images. It's flexible (the user can choose to display between 1 and 4 images per line).
I want to print these views in a PDF through weasyprint. As of now, these views are laid out in a flexbox pattern. As I gather from the doc and github issues, flexbox is not totally supported by weasyprint, including page-breaks (the content just overflows in the same page and disappears at the bottom).
I tried a grid layout, which does support page-break but not the grid layout itself (each image take up all the width of the page, the property
grid-template-columns
is not supported.Is there something I missed? Do you guys suggest a workaround or a better way to do this? Is the work to make weasyprint compatible with that a lot of work (considering I haven't contributed to such a project yet, so I'm trying to figure out whether it'd be a smart move to help out on this or just an impossible task)?
Here are the two layouts I tested:
Grid
Flexbox
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: