[cups.general] Printing B&W

Daniel Birns danielbirns at gmail.com
Fri Feb 15 09:06:35 PST 2008


Hi all,

I'm a newbie, trying to write a printer driver.

I'm including in this submission my edited PPD file and cups error  
log, which occurred while printing a single page.  I suspect the  
problem is in the ppd.  I prefix the error log with DEBUG: below the  
ppd excerpt.  Oh yes, I have LogLevel set to debug2.  To save space,  
I removed all the lines that said get_jobs: and FindBest in the log,  
along with some other messages that looked (I hope!) redundant.  At  
the end, I log the colorspace, which is D [14/Feb/2008:12:20:59  
-0800] [Job 201] CUPS_CSPACE_K.  Also, the bytesPerLine is always 59,  
which seems suspicious.

cupstestppd passes this ppd file...

Any help is appreciated.

--Daniel

PPD excerpt

*PPD-Adobe: "4.3"
*FormatVersion:	"4.3"
*FileVersion:	"2.0.2"
[...]
*Manufacturer:	"DARTdevices"
*Product:	"(dart printing)"
*cupsVersion:	1.1
[...]
*cupsModelNumber:  1
*cupsFilter:	"application/vnd.cups-raster 0 dart-filter"
[...]
*LanguageLevel:	"3"
*ColorDevice:	True
*DefaultColorSpace: RGB
*FileSystem:	False
[...]
*%TTRasterizer:	Type42

*DefaultResolution: 1200dpi

*DefaultPageSize: OD120
*%I can see I have to fix the page size...
*PageSize OD120/Optical Disc 120mm: "20 450 translate"

DEBUG:

I [14/Feb/2008:12:20:59 -0800] Job 201 queued on 'dart' by 'daniel'.
D [14/Feb/2008:12:20:59 -0800] Job 201 hold_until = 0
d [14/Feb/2008:12:20:59 -0800] SaveJob: Closing file 20...
D [14/Feb/2008:12:20:59 -0800] StartJob(201, 0x180cc00)
D [14/Feb/2008:12:20:59 -0800] StartJob() id = 201, file = 0/1
D [14/Feb/2008:12:20:59 -0800] dnssdRegisterPrinter(dart) update
D [14/Feb/2008:12:20:59 -0800] job-sheets=none,none
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "Quality=Normal"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "noPrintToPRN"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "CachePRN"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "AP_D_InputSlot="
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "nocollate"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "media=OD120"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrinterInfo.PMColorDeviceID..n.=1100"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "OutputOrder=Normal"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMCopyCollate..b."
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMLayoutDirection..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
DocumentTicket.PMSpoolFormat=application/pdf"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.paper_info_ticket..d.[...]ticket.version=10.4.0"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.paper_info_ticket..d.[...]ticket.type=[...]PaperInfoTicket"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.paper_info_ticket..d.[...]PaperInfo.ppd.PMPaperName=US\  
Letter"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.paper_info_ticket..d.[...]PaperInfo.PMPaperName=na-letter"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMLayoutRows..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "no[...] 
PrintSettings.PMBorder..b."
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMDestinationType..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMFirstPage..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
JobInfo.PMJobName=Technical\ Note\ TN2124:\ Mac\ OS\ X\ Debugging\  
Magic"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMLastPage..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMPageRange..a.0..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMPageRange..a.1..n.=2147483647"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
JobInfo.PMJobOwner=daniel"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMTotalSidesImaged..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "no[...] 
PrintSettings.PMLayoutNUp..b."
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMLayoutTileOrientation..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMCopies..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMColorMatchingMode..n.=0"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMOrientation..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
JobInfo.PMApplicationName=Safari"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]ticket.version=10.4.0"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]subTicket.paper_info_ticket..d. 
[...]ticket.version=10.4.0"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]subTicket.paper_info_ticket..d. 
[...]ticket.type=[...]PaperInfoTicket"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]subTicket.paper_info_ticket..d. 
[...]PaperInfo.ppd.PMPaperName=US\ Letter"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]subTicket.paper_info_ticket..d. 
[...]PaperInfo.PMPaperName=na-letter"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]ticket.type=[...]PageFormatTicket"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]PageFormat.PMOrientation..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]PageFormat.PMVerticalScaling..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]PageFormat.PMVerticalRes..n.=72"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]PageFormat.PMScaling..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
subTicket.page_format_ticket..d.[...]PageFormat.PMHorizontalRes..n.=72"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMColorSpaceModel..n.=2"
D [14/Feb/2008:12:20:59 -0800] StartJob: option =  
"DestinationPrinterID=dart"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMLayoutColumns..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMColorSyncProfileID..n.=836"
D [14/Feb/2008:12:20:59 -0800] StartJob: option = "[...] 
PrintSettings.PMTotalBeginPages..n.=1"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[0]="PATH=/usr/libexec/ 
cups/filter:/bin:/usr/bin"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[2]="USER=root"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[3]="CHARSET=utf-8"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[4]="LANG=en_US"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[5]="PPD=/private/etc/ 
cups/ppd/dart.ppd"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[6]="CUPS_SERVERROOT=/ 
private/etc/cups"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[8]="TMPDIR=/private/var/ 
spool/cups/tmp"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[9] 
="CONTENT_TYPE=application/pdf"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[10]="DEVICE_URI=file:/ 
dev/null"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[11]="PRINTER=dart"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[12]="CUPS_DATADIR=/usr/ 
share/cups"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[13]="CUPS_FONTPATH=/usr/ 
share/cups/fonts"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[14] 
="CUPS_SERVER=localhost"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[15]="IPP_PORT=631"
D [14/Feb/2008:12:20:59 -0800] StartJob: envp[16]="<CFProcessPath>"
d [14/Feb/2008:12:20:59 -0800] StartJob: Allocating status buffer...
D [14/Feb/2008:12:20:59 -0800] StartJob: statusfds = [ 20 21 ]
D [14/Feb/2008:12:20:59 -0800] StartJob: filterfds[1] = [ 22 -1 ]
D [14/Feb/2008:12:20:59 -0800] StartJob: CFProcessPath=/usr/libexec/ 
cups/filter/cgpdftoraster
D [14/Feb/2008:12:20:59 -0800] StartJob: filter = "/usr/libexec/cups/ 
filter/cgpdftoraster"
D [14/Feb/2008:12:20:59 -0800] StartJob: filterfds[0] = [ 23 24 ]
D [14/Feb/2008:12:20:59 -0800] start_process("/usr/libexec/cups/ 
filter/cgpdftoraster", 0xbfff0174, 0xbffef6ec, 22, 24, 21)
I [14/Feb/2008:12:20:59 -0800] Started filter /usr/libexec/cups/ 
filter/cgpdftoraster (PID 502) for job 201.
D [14/Feb/2008:12:20:59 -0800] StartJob: CFProcessPath=/usr/libexec/ 
cups/filter/dart-filter
D [14/Feb/2008:12:20:59 -0800] StartJob: filter = "/usr/libexec/cups/ 
filter/dart-filter"
D [14/Feb/2008:12:20:59 -0800] StartJob: filterfds[1] = [ -1 22 ]
D [14/Feb/2008:12:20:59 -0800] start_process("/usr/libexec/cups/ 
filter/dart-filter", 0xbfff0174, 0xbffef6ec, 23, 22, 21)
I [14/Feb/2008:12:20:59 -0800] Started filter /usr/libexec/cups/ 
filter/dart-filter (PID 503) for job 201.
d [14/Feb/2008:12:20:59 -0800] StartJob: Adding fd 20 to InputSet...
d [14/Feb/2008:12:20:59 -0800] add_job_state_reasons(0x1823800[17], 201)
d [14/Feb/2008:12:20:59 -0800] get_printer_attrs(0x182d600[16], ipp:// 
localhost/printers/dart)
d [14/Feb/2008:12:20:59 -0800] add_printer_state_reasons(0x182d600 
[16], 0x180cc00[dart])
d [14/Feb/2008:12:20:59 -0800] add_queued_job_count(0x182d600[16],  
0x180cc00[dart])
D [14/Feb/2008:12:20:59 -0800] [Job 201] `/private/var/spool/cups/ 
d00201-001' has 1 pages.
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster - opened PPD  
file "/private/etc/cups/ppd/dart.ppd"...
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster: size->width =  
340, size->length = 340, size->top = 340, size->bottom = 0, size- 
 >left = 0, size->right = 340
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster:  
preferredRotation = -90
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster -  
languageLevel = 3, mediaBox.size.width = 340, mediaBox.size.height = 340
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster - cupsWidth =  
472, cupsheight = 472
D [14/Feb/2008:12:20:59 -0800] [Job 201] band width = 472,  
bytesPerRow = 472, band height = 472, height = 472
D [14/Feb/2008:12:20:59 -0800] [Job 201] NOT using display list
D [14/Feb/2008:12:20:59 -0800] [Job 201] header bytesPerLine is 59
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsWidth is 472
D [14/Feb/2008:12:20:59 -0800] [Job 201] header H is 472
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsMediaType is 0
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsBitsPerColor is 1
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsBitsPerPixel is 1
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsBitsPerColor is 1
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsBytesPerLine is 59
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsRowCount is 0
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsRowFeed is 0
D [14/Feb/2008:12:20:59 -0800] [Job 201] header cupsRowStep is 0
D [14/Feb/2008:12:20:59 -0800] [Job 201] CUPS_CSPACE_K
D [14/Feb/2008:12:20:59 -0800] [Job 201] cgpdftoraster: bytes written  
for sheet 1 = 27848
D [14/Feb/2008:12:21:00 -0800] PID 502 exited with no errors.





More information about the cups mailing list