Discover the PageSetup LineNumberRestartMode property to control line numbering—choose between restarting at new pages or continuous numbering for seamless Documents.... Document doc = new Document (); DocumentBuilder...builder = new DocumentBuilder ( doc ); // We can use the section's...