Aspose::Words::Layout::LayoutCollector class. This class allows to compute page numbers of Document nodes. To learn more, visit the Documentation article in C++.... auto doc = MakeObject < Document > ();...MakeObject < LayoutCollector > ( doc ); // Call the "GetNumPagesSpanned"...