This thread will probably help https://discuss.frappe.io/t/add-page-break-to-print-format-while-generating-pdf/37962/23