Weird Custom Printing Format (Jinja + HTML and CSS)

I have a custom print format with Jinja + HTML and custom CSS configurations like the following images:

image
image

But when I print that (in pdf format) why does it looks like these? (“Diterima Oleh” and “Dibuat Oleh” are separated with new line)

image

It is so weird because I also have tried in standard html + css (with bootstrap) deployment and it display correctly (“Diterima Oleh” should be beside “Dibuat Oleh”)
image

You should prefix flex and any unsupported CSS, check these

3 Likes

It works like a charm :grin:. So basically, because ERPNext uses wkhtmltopdf, which does not fully support bootstrap, we need to set CSS classes manually. Many thanks for your code.