Return Value
Returns the number of pages in the current document.
Gets the number of pages in the document.
This is an experimental feature which may not always return the exact page count, but gives a good approximation. Results depends on the pages content.
Note that calling this method may slow down your application depending on the number of pages and the content of these pages.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2