It looks like there may be a way to crawl through the file looking at the IFDs. There is 1 IFD for every page.