问题
I need to convert a .haml view to .pdf using wicked_pdf (or another), the problem is ... I use flexboxgrid (try BootstrapGrid before but it does not work), the columns (.col-xs- *) do not work as it. Should idea?
回答1:
wicked_pdf uses wkhtmltopdf
to do the rendering, which right now is approximate to a very old version of Chrome/Chromium (like v. 13 or so), which doesn't support Flexbox. You'll likely need to add and load a pdf-specific stylesheet to tweak the layout using non-flexbox CSS directives.
来源:https://stackoverflow.com/questions/53638647/how-to-use-flexboxgrid-with-wicked-pdf