
############################
A3DPDFDocumentGetNumberPages
############################

.. c:function:: A3DStatus A3DPDFDocumentGetNumberPages(const A3DPDFDocument *pDoc, A3DInt32 *piNbPages)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFDocumentGetNumberPages(*const* :c:type:`~A3DPDFDocument`\ * **pDoc**\ , :c:type:`~A3DInt32`\ * **piNbPages**\ )
   
   Function to get the number of pages in the document. 
   
   **Parameters**
   
   
      **pDoc**\ : The Document object to work with. 
   
      **piNbPages**\ : The number of pages. Remember to subtract 1 from this value if you are going to pass it to a method that takes a zero-based page number.
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




