ImageGear for C and C++ on Windows v20.1 - Updated
IG_PDF_text_extract
API Reference Guide > PDF Component API Reference > PDF Component Functions Reference > IG_PDF_text_extract

This function extracts text from pages determined by arguments nStartPage and nPageCount.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_text_extract(
        LPSTR lpszFileName, 
        LPSTR lpszTextName, 
        UINT nStartPage, 
        UINT nPageCount
);

Arguments:

Name Type Description
lpFileName LPSTR Name of the PDF or PS document.
lpTextFileName LPSTR Name of the output TXT file.
nStartPage UINT The index of the first page to obtain. The first page is 1.
nPageCount UINT Total number of pages to be processed (starting at nStartPage).

Return Value:

Error count

Supported Raster Image Formats:

This function does not process image pixels.

Is this page helpful?
Yes No
Thanks for your feedback.