Show
Ignore:
Timestamp:
06/25/07 11:07:12 (17 years ago)
Author:
jerome
Message:

Fixed handling of number of copies as defined through PJL statements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pclxl.py

    r454 r456  
    190190            try : 
    191191                nbcopies = unpack(self.unpackShort, minfile[pos3-2:pos3])[0] 
    192                 self.logdebug("Number of copies : %i" % nbcopies) 
     192                # self.logdebug("Number of copies : %i" % nbcopies) 
    193193                self.pages[self.pagecount]["copies"] = nbcopies 
    194194            except KeyError :     
     
    651651            oldduplexmode = duplexmode 
    652652            oldpapersize = papersize 
    653             copies = pjlcopies * page["copies"] 
     653            copies = max(pjlcopies, page["copies"]) # Was : pjlcopies * page["copies"] 
    654654            self.pagecount += (copies - 1) 
    655655            self.logdebug("%s*%s*%s*%s*%s*%s*%s" % (copies,