Thank you very much. Pushed the attached additional patch to the BZR repo (rev. 7300). Till On 10/17/2014 06:22 PM, Alex Korobkin wrote: > Works beautifully, thank you. And thanks for digging up the exact rules > of QTY and COPIES application. > > > 2014-10-16 16:59 GMT-04:00 Tobias Hoffmann > >: > > On 16/10/14 18:52, Alex Korobkin wrote: > > Turns out, there should be one additional line for collate to > work with multiple copies and multiple pages: > PJL SET QTY=X > > Could you please modify your patch to generate two lines at > once: PJL SET COPIES=X and PJL SET QTY=X? > > The attached patch does that. It's based on BZR rev. 7299, which > already includes the SET COPIES modifications (Till also posted the > corresponding .patch, earlier). > > I did some research, though... and it seem that (only) "SET COPIES" > should be used for non-collated and only(!) "SET QTY" should be used > for collated duplicates. > Please do try whether just SET QTY is enough: > if (param.deviceCollate) { > snprintf(ppd->jcl_ps, size, "@PJL SET QTY=%d\n%s", > param.deviceCopies, attr->value); > } else { > [...] > > Tobias > > > > > > > -- > -Alex