The method GetPageCount that you referring to is related to the document editor. For presentation editor you can use GetSlidesCount, but there is no such method available for PDF editor.
Thank you for your reply. If the PDF editor does not provide an API to get the number of pages in the file, is there an indirect way to achieve this? Getting the number of pages in a document is a common requirement, and many functionalities depend on this data.