PageSetup.line_number_restart_mode property. Gets or sets the way line numbering runs that is, whether it starts over at the beginning of a new page or section or runs continuously.... Document () builder = aw . DocumentBuilder ( doc...of the line. page_setup = builder . page_setup page_setup . ...