#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2GetPageCountExt(hDoc, nDocId, pnPageCount)
Gets the total number of pages in the specified OCR document.
Handle to the OCR document.
Document ID created by calling L_Doc2CreateDocument.
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_Doc2AddPageExt.