Document.page_count property. Gets the number of pages in the document as calculated by the most recent page layout operation.... doc = aw . Document () builder = aw . DocumentBuilder...1' ) builder . insert_break ( aw . BreakType . PAGE_BREAK ) builder...