GetNumberOfPagesInMODCAFileMem Method

 

Description

Returns the number of pages in an MO:DCA file. The memory must be allocated using the GlobalAlloc Windows API function. MO:DCA files can contain various objects (e.g.: text) on the pages. Some pages may not contain an image object that is readable with the Document Imaging SDK. To retrieve the number of image objects in the MO:DCA file, use the GetNumberOfImagesInMODCAFileMem function instead.

Syntax

Pages = [BITIFF.] GetNumberOfPagesInMODCAFileMem GlobalMemory

Parameters

GlobalMemory

LONGLONG

Handle to memory containing the MO:DCA document. The memory must be allocated using the GlobalAlloc Windows API function.

Return Value

The number of pages on success, or 0 on failure. Use the BiTiffGetLastErrort function to get the error code.