From 28f71459b255ad798436c9dba3ca0b5613cb2ccc Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 10 Feb 2006 18:16:28 +0100 Subject: use first Pages tag in DSC --- src/PostscriptDSC.cxx | 6 +----- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3