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.... doc = aw . Document () builder = aw . DocumentBuilder.... line_number_restart_mode = aw . LineNumberRestartMod . RESTART_PAGE...