Aspose::Words::Layout::LayoutCollector::Clear method. Clears all collected layout data. Call this method after document was manually updated, or layout was rebuilt in C++....the document is empty, that number of pages is currently zero...doc )); // We can see the numbers of the start and end pages...