summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/pdftool.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/pdftool.c b/apps/pdftool.c
index 2751c953..4447c237 100644
--- a/apps/pdftool.c
+++ b/apps/pdftool.c
@@ -1989,16 +1989,18 @@ showinfo(char *filename, int show, char *pagelist)
if (allpages)
printf("Retrieving info from pages %d-%d...\n", spage, epage);
- for (page = spage; page <= epage; page++)
+ if (spage >= 1)
{
+ for (page = spage; page <= epage; page++)
+ {
gatherinfo(show, page);
if (!allpages)
{
- printf("Page %05d:\n", page);
- printinfo(filename, show, page);
- printf("\n");
+ printf("Page %05d:\n", page);
+ printinfo(filename, show, page);
+ printf("\n");
}
-
+ }
}
spec = strsep(&pagelist, ",");