ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_PAGE > IG_PDF_page_get_annotation_count

Gets the number of annotations on a page.


Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_page_get_annotation_count(
        HIG_PDF_PAGE hPage,
        LPUINT lpnCount


Name Type Description
hPage HIG_PDF_PAGE The page for which the number of annotations is obtained.
lpnCount LPUINT The number of annotations return value.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.


Annotations associated with pop-up windows (such as strikeouts) are counted as two annotations. Widget annotations (form fields) are included in the count.

Is this page helpful?
Yes No
Thanks for your feedback.