diff options
-rw-r--r-- | src/PostscriptDSC.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PostscriptDSC.cxx b/src/PostscriptDSC.cxx index 22cfe40..3062763 100644 --- a/src/PostscriptDSC.cxx +++ b/src/PostscriptDSC.cxx @@ -85,11 +85,7 @@ PostscriptDSC::parse(int fd) { bb_read++; } else if (strncmp(linebuf, "%%EndSetup", strlen("%%EndSetup")) == 0) { setup_len = ftello(fp); - } else if (sscanf(linebuf, "%%%%Pages: %d", &ps) == 1) { - if (pages != 0) { - fprintf(stderr, "Multiple Pages tags found\n"); - return 1; - } + } else if (pages == 0 && sscanf(linebuf, "%%%%Pages: %d", &ps) == 1) { pages = ps; page_off = (size_t*) malloc(sizeof(size_t) * pages); |