pdfGetNumTextStrings
Get the number of text strings on the analyzed page(s).
int pdfGetNumTextStrings(PDFHandle pdf)
Drawn objects in PDF files are divided into four types:
- bitmap images
- text strings
- strokes (lines)
- fills (filled shapes)
pdfAnalyzePages
.
C:
int i, n, nTextStrings;
n = pdfGetNumPages(pdf);
for (i = 1; i <= n; ++i) {
/* analyze page i */
pdfAnalyzePages(pdf, i, i);
/* retrieve statistics for page i */
nTextStrings = pdfGetNumTextStrings(pdf);
}