ImageGear Professional for Linux
IG_page_count_get

This function obtains the number of pages in the image file.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_page_count_get(
   const LPSTR lpszFileName,
   LPUINT lpPageCount
);

Arguments:

Name Type Description
lpszFileName const LPSTR Path and name of the file for which to get the page count. The path can be absolute or relative.
lpPageCount LPUINT Pointer to a UINT variable to receive page count.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional.

Example:

 
Copy Code
UINT nPages;            // Will receive number of pages
AT_ERRCOUNT nErrcount;  // Count of returned errors
nErrcount = IG_page_count_get ( "picture.bmp", &nPages );

See Also

IG_fltr_pagecount_file_format

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback