Analyze one or more pages.
void pdfAnalyzePages(PDFHandle pdf, int firstPage, int lastPage)
This function analyzes pages firstPage through lastPage of the PDF file. All statistics from any previous call to pdfAnalyzePages are cleared first.

After pdfAnalyzePages has been called, you can call any of the statistics access functions.

int i, n; n = pdfGetNumPages(pdf); for (i = 1; i <= n; ++i) { /* analyze page i */ pdfAnalyzePages(pdf, i, i); /* retrieve statistics for page i */ ... }