To subtract 1 from the output pagenumbers you could always just add a "-1" to the value the $renderer actually prints, like this:
l.86 $renderer->doc .= $this->countAllPages($stat);
add -1:
l.86 $renderer->doc .= $this->countAllPages($stat) -1;
Easy and it works, but pretty bad programming style.
Another (and better) option would be to alter the if statement in the _pages_xhtml_r function that determines whether to count +1 or not. Lets assume all your index files are called "index.txt", then the statement:
l.147 if (is_file($path."/".$file)) {
$tmp++;
}
would look something like that:
if (is_file($path."/".$file) && $file != "index.txt") {
$tmp++;
}
Hope that helps.
Scarecrow