job-sheets IPP option kills number-up?
Albrecht Dreß
albrecht.dress at arcor.de
Fri Dec 29 07:50:46 PST 2006
Hi all,
while debugging problems with GtkPrint cups support, I ran into a very puzzling behaviour.
When a cups job contains the IPP option "job-sheets=none", the "number-up" option is processed as expected, i.e. two pages are combined on one sheet. This is an excerpt form the hexdump of the cups control file (in /var/spool/cups):
<snip>
000000f0 74 79 00 04 00 00 00 32 42 00 07 51 75 61 6c 69 |ty.....2B..Quali|
00000100 74 79 00 10 46 72 6f 6d 50 72 69 6e 74 6f 75 74 |ty..FromPrintout|
00000110 4d 6f 64 65 42 00 0a 6a 6f 62 2d 73 68 65 65 74 |ModeB..job-sheet|
00000120 73 00 04 6e 6f 6e 65 42 00 06 44 75 70 6c 65 78 |s..noneB..Duplex|
00000130 00 04 4e 6f 6e 65 21 00 09 6e 75 6d 62 65 72 2d |..None!..number-|
00000140 75 70 00 04 00 00 00 02 49 00 0f 64 6f 63 75 6d |up......I..docum|
00000150 65 6e 74 2d 66 6f 72 6d 61 74 00 16 61 70 70 6c |ent-format..appl|
00000160 69 63 61 74 69 6f 6e 2f 70 6f 73 74 73 63 72 69 |ication/postscri|
00000170 70 74 45 00 08 6a 6f 62 2d 75 75 69 64 00 2d 75 |ptE..job-uuid.-u|
</snip>
Printing the /same/ document with the /same/ options, but with "job-sheets=none,none", the number-up option is discarded, i.e. the printout is one page on one sheet:
<snip>
000000f0 74 79 00 04 00 00 00 32 42 00 07 51 75 61 6c 69 |ty.....2B..Quali|
00000100 74 79 00 10 46 72 6f 6d 50 72 69 6e 74 6f 75 74 |ty..FromPrintout|
00000110 4d 6f 64 65 42 00 0a 6a 6f 62 2d 73 68 65 65 74 |ModeB..job-sheet|
00000120 73 00 09 6e 6f 6e 65 2c 6e 6f 6e 65 42 00 06 44 |s..none,noneB..D|
00000130 75 70 6c 65 78 00 04 4e 6f 6e 65 21 00 09 6e 75 |uplex..None!..nu|
00000140 6d 62 65 72 2d 75 70 00 04 00 00 00 02 49 00 0f |mber-up......I..|
00000150 64 6f 63 75 6d 65 6e 74 2d 66 6f 72 6d 61 74 00 |document-format.|
00000160 16 61 70 70 6c 69 63 61 74 69 6f 6e 2f 70 6f 73 |.application/pos|
00000170 74 73 63 72 69 70 74 45 00 08 6a 6f 62 2d 75 75 |tscriptE..job-uu|
</snip>
Is this a bug or a feature? If the job-sheets option is broken (is it?), it should IMHO not interfere with any other options.
I use cups 1.2.7 on a PowerMac running Linux 2.6.15. The printer is a HP Deskjet 5150, using the PPD from http://openprinting.org/ppd-o-matic.cgi?driver=hpijs&printer=HP-DeskJet_5150&show=1.
Thanks in advance,
Albrecht.
More information about the cups
mailing list