Print Preview and PDF far away

I think I’m not the first one to ask but I couldn’t find a satisfying answer yet.

I am developing a custom print format (Jinja) for a customer. The preview looks good, but the PDF print does not match the preview at all. The PDF print even does not care about divs but smashes content all together.

I would expect the preview being similar to the final print (except pages of course).

Actually found the problem.
I was using display:flex for my parent div.

After removing it, everything is in order again.

Thank You Paul
Info will definitely help when building custom format :slight_smile: