[]
Gets the total number of the pages in the print document.
public int PageCount { get; }
The value returned is accurate only while the document is printing. Before or after a document is done printing, this property returns zero.