#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetPageCount(hDoc, pnPageCount)
Gets the total number of pages in the specified OCR document.
Handle to the OCR document.
Address of the variable to be updated with total number of OCR pages.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To remove a page, call the L_Doc2RemovePage / L_Doc2RemovePageExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2AddPage.