.. highlightlang:: us .. index:: DocGetPageCount .. _docgetpagecount: DocGetPageCount =============== .. us.tag DocGetPageCount ENGLISH DocGet :ref:`DocGetPageCount` returns the number of pages in a document. .. function:: nPages = DocGetPageCount(hDoc) .. us.return **Return Value** *nPages* is the number of pages. .. us.params **Parameters** .. uparam:: hDoc *hDoc* is the document handle. .. seealso:: :ref:`overview-documents`, :ref:`DocCreate`, :ref:`DocAddPage` :sub:`id-184258`