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.
Sorry for the delayed response. Unfortunately, there is no API method that would allow getting page count in PDF API. We have registered an enhancement suggestion to implement such method in future releases of Document Server.