# Count Pages

> [HTML Version](countpages.htm)

_Added September 2013_

IMGOP\_PAGEINFO returns the number of pages in a multi-page TIF file.

**xcall AUI, AUI\_IMAGE, IMGOP\_PAGEINFO, handle, status, filename, pages**

**Parameters**

_handle_

Ignored. It is here only for uniformity with other opcodes

_status_  (F,6)  \[out\]

returns status; 0 for success

_filename_  ([String](string.md))  \[in\]

file to examine, as for opcode 1

_pages_  ([Num](num.md))  \[out\]

returns the number of pages in the file. 0 indicates that the number is unknown—or more likely, the file does not support multiple pages

Note that in order for this feature to be used with ATE, both server and client must be on A-Shell 6.1.1362.0 or later.

**History**

2013 September, A-Shell 6.1.1362:  function added to A-Shell

