ImageGear for C and C++ on Windows v19.1 - Updated
IG_PDF_doc_get_page_count
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_DOC > IG_PDF_doc_get_page_count

Gets the number of pages in the document.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_doc_get_page_count(
        HIG_PDF_DOC hDoc,
        LPUINT lpnCount
);

Arguments:

Name Type Description
hDoc HIG_PDF_DOC The document for which the number of pages is obtained.
lpnCount LPUINT The number of pages in the document.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.