[cups.bugs] [HIGH] STR #2570: JCLOpenUI/cupsJobTickets do not work

franz.pfoertsch.brose franz.pfoertsch at brose.com
Sun Oct 28 10:10:52 PDT 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Today I tried to check out the JCLOpenUI Custom options.

It seems there is something broken.

I created this Option in the ppd-file and restarted the cupsd

*% Base JCL key code option

*JCLOpenUI JCLMailbox/Mailbox: PickOne

*OrderDependency: 10 JCLSetup *JCLMailbox

*DefaultJCLMailbox: None

*JCLMailbox None/No mailbox: ""

*JCLMailbox 0: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=O<0A>"

*JCLMailbox 1: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=1<0A>"

*JCLMailbox 2: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=2<0A>"

*JCLMailbox 3: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=3<0A>"

*JCLMailbox 4: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=4<0A>"

*JCLMailbox 5: "@PJL COMMENT CANPJL SET DEVICE=MAILBOX<0A>@PJL COMMENT
CANPJL SET MAILBOXNUMBER=5<0A>"

*JCLCloseUI: *JCLMailbox


I exported the ppd via cupsaddsmb and teh option get rebuilded, but the
commands inside of the option got cut at Mailb

---8<---ppd in windows-----
*% Commented out for CUPS Windows Driver...

*%JCLBegin: "<1B>%-12345X at PJL JOB<0A>"

*% Commented out for CUPS Windows Driver...

*%JCLToPSInterpreter: "@PJL ENTER LANGUAGE = Postscript <0A>"

*% Commented out for CUPS Windows Driver...

*%JCLEnd: "<1B>%-12345X at PJL EOJ <0A><1B>%-12345X"





*% Base JCL key code option 

*JCLOpenUI JCLMailbox/Mailbox: PickOne

*OrderDependency: 0 JCLSetup *JCLMailbox

*DefaultJCLMailbox: None

*% Changed for CUPS Windows Driver...

*JCLMailbox None/No mailbox: "%cupsJobTicket: JCLMailbox=None

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 0: "%cupsJobTicket: JCLMailbox=0: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 1: "%cupsJobTicket: JCLMailbox=1: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 2: "%cupsJobTicket: JCLMailbox=2: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 3: "%cupsJobTicket: JCLMailbox=3: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 4: "%cupsJobTicket: JCLMailbox=4: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*% Changed for CUPS Windows Driver...

*JCLMailbox 5: "%cupsJobTicket: JCLMailbox=5: "@PJL COMMENT CANPJL SET
DEVICE=MAILB

"

*End

*JCLCloseUI: *JCLMailbox


---8<---ppd in windows-----

After this I printed out something from windows and got this:

two cupsJobTickets in one line.
At the source in scheduler/ipp.c it is defined as %cupsJobTicket:
attr1=value1 attr2=value2 ... attrN=valueN
what is the right way?

----8< spooljob at /var/spool/cups/d....
%!PS-Adobe-3.0

%cupsJobTicket: JCLMailbox=5: %cupsJobTicket: job-hold-until=no-hold

%cupsJobTicket: job-sheets=none,none

%!PS-Adobe-3.0

%%Title: Microsoft Office Outlook - Memoformat

%%Creator: PScript5.dll Version 5.2.2

%%CreationDate: 10/28/2007 1:19:55

%%For: pfoerfr

%%BoundingBox: (atend)

%%Pages: (atend)

%%Orientation: Portrait

After the printout I got the following on my file device:

ESC%-12345X at PJL

@PJL JOB NAME = "smbprn.00000081 Microsoft Office Outlook - Memoformat"
DISPLAY = "307 pfoerfr smbprn.00000081 Microsoft Office Outlook -
Memoformat"

@PJL RDYMSG DISPLAY = "307 pfoerfr smbprn.00000081 Microsoft Office
Outlook - Memoformat"

@PJL ENTER LANGUAGE = Postscript

%!PS-Adobe-3.0

%%Title: Microsoft Office Outlook - Memoformat

%%Creator: PScript5.dll Version 5.2.2

%%CreationDate: 10/28/2007 1:19:55

%%For: pfoerfr

%%Orientation: Portrait

%%PageOrder: Ascend

%%DocumentNeededResources: (atend)

%%DocumentSuppliedResources: (atend)

%%DocumentData: Clean7Bit

%%TargetDevice: (iR C2880/C3380) (3010.103) 0



All additional Information got lost, how can I get my PJL information
through cups?

Link: http://www.cups.org/str.php?L2570
Version: 1.4-current





More information about the cups mailing list