Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-generated PPD file including KANJI



Hi all,

I developed a Tioga-based driver for a raster (non-PS) printer.
It works fine on 10.1 and 10.2.

But it does not work on 10.3.
I tried to find the reason, and I found a few error messages in cups
error_log:

I [...] Setting MyPrinter device-uri to "file:///dev/null" (was
"file:/dev/null".)
I [...] Setting MyPrinter printer-is-accepting-jobs to 1 (was 0.)
I [...] Setting MyPrinter printer-state to 3 (was 5.)
D [...] add_printer: Copied PPD file successfully!
E [...] PPD file for MyPrinter cannot be loaded!
E [...] Illegal option keyword string on line 23.

These messages were printed when a printer was created by
PrinterSetupUtility.
The "line 23" of the auto-generated PPD file for my printer is one of
"*PageSize" entries.


cupstestppd command says the same thing:

% cupstestppd -v /etc/cups/ppd/MyPrinter.PPD
** FAIL ** Unable to open PPD file - Illegal option keyword string
on line 23.
REF: Page 19, section 3.3.


My driver supports multiple languages, and my default language is Japanese.
And some of supported papers have Japanese (KANJI) names.
The "line 23" of the file is the following:

*PageSize: A4xxxxxx/A4xxxxxx: "1 dict dup PageSize[841.00 595.00]put
setpagedevice"

The "xxxxxx" is actually hexadecimal value 0xE6A8AA, that is a
UTF8-encoded KANJI.

The KANJI names are shown correctly on PageSetup dialog.
But when a print job started, the job disappeared soon.
Functions of my driver (BeginJob(), etc.) are not called at that time.

After I removed KANJI characters from paper names and
re-compile/re-install, it works.
Print jobs are done correctly.

I checked cups error_log again, and found another messages.


- Bad case (KANJI paper names):

D [...] StartJob: CFProcessPath=/usr/libexec/cups/filter/cgpdftops
...
D [...] StartJob: CFProcessPath=/use/libexec/cups/filter/pstops
...
D [...] [Job 1] 0 %%Title: (unknown)
D [...] [Job 1] 0 %%Creator: (unknown)
...
D [...] [Job 1] 0 %%Trailer
D [...] [Job 1] Saw Trailer!
D [...] [Job 1] Saw EOF!
D [...] UpdateJob: job 1, file 0 is complete.

- Good case (no KANJI paper names):

D [...] StartJob:
CFProcessPath=/System/Library/Printers/Libraries/PrintJobMgr/Contents/MacOS/PrintJobMgr
...
D [...] [Job 2] JobManager converting file:
/private/var/spool/cups/d00002-001 (7 args)
...
D [...] [Job 2] PDFtoTiogaRaster: SheetWidth = 595, SheetHeight = 841
...
D [...] UpdateJob: job 2, file 0 is complete.


Different processes are invoked.
Why does this happen?

Is this a bug of Mac OS X 10.3?
Or any changes needed?

Thank you in advance.

---
Keiichi Yamada
YUJIN Inc.
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.