[Django]-Writing multiple page pdf from html template using weasy print and django

6👍

✅

Removed the body tags from my template and it worked without using page breaks, weasyprint limits everything in the body tag to be one document in a page.
another answer that helped

1👍

I’ve thrown together a repo to try and reproduce your issue here, and was unable to.

There’s a small syntax error in your question – you’re missing the < off your second <div />, but apart from that, it all looks good.

Leave a comment