diff --git a/eeshow/gfx/pdftoc.c b/eeshow/gfx/pdftoc.c index dae3790..dd30ded 100644 --- a/eeshow/gfx/pdftoc.c +++ b/eeshow/gfx/pdftoc.c @@ -153,7 +153,8 @@ static void line(struct pdftoc *ctx, const char *s) ctx->state = idle; break; } - if (strbegins(s, "<< /Type /Page")) { + if (strbegins(s, "<< /Type /Page") && + !strbegins(s, "<< /Type /Pages")) { ctx->curr_obj->is_page = 1; break; }