client page size not passed to renderer

Till Kamppeter till.kamppeter at gmx.net
Tue Feb 28 09:13:06 PST 2006


Can you somehow capture the data stream coming from the Windows XP box
when printing to the HP CP1700 or Business Inkjet 1100 and also from one
of the working printers? This way I have the chance to add an
alternative method to retrieve the user-selected paper size in foomatic-rip.

   Till

Anonymous wrote:
> WindowsXP clients are not able to print to either our HP CP1700 or our Business Inkjet 1100.
> I am working with cups-1.1.23.0, hpijs-2.1.4, samba-3.0.20b,1 running together on FreeBSD 6.0R. The windows XP clients are using W2K Postscript drivers downloaded over samba.
> The setup works for 5 Printers and doesn't for the 2 mentionned above. All are network printers. An older Samba/Cups server works with all 7.
> A HP CP1700 and a Business Inkjet 1100 cannot yet be used. All printers are OK when used from an *unix client.
> The page size in print jobs from the Windows clients to the above mentionned printers, either A3 or A4, doesn't seem to get passed to the renderer. Within the log files (sample below) can be seen in various places that the most if not all references to page size are filled with 0's.
> [Job 269] pw = 0.0, pl = 0.0
> [Job 269] PageLeft = 0.0, PageRight = 0.0
> [Job 269] PageTop = 0.0, PageBottom = 0.0
> [Job 269] PageWidth = 0.0, PageLength = 0.0
> followed by the call to gs with
> "-dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0".
> Printing from an *unix client show these places filled with the proper
> point counts. Printing from the Windows clients to any other printer here also functions as it should.
> Suggestions as to what I should tweak/replace? The differences between the hpijs driver for the cp1700 on the old server and on the new one seemed to be linmited to the default page size and some new functionality that the old one didn't have.
> 
> Thanks for any help in advance.
> 
> Log file:
> Adding start banner page "none" to job 267.
> Adding end banner page "none" to job 267.
> Job 267 queued on 'cp1700' by 'me'.
> Job 267 hold_until = 0
> StartJob(267, 0x81a5800)
> StartJob() id = 267, file = 0/1
> StartJob: argv = "cp1700","267","me","smbprn.00000005 \
> aushang_mech_neumann.pdf","1","","/var/spool/cups/d00267-001"
> Started filter /usr/local/libexec/cups/filter/pstops (PID 98967) for job 267.
> Started filter /usr/local/libexec/cups/filter/foomatic-rip (PID 98968) for job 267.
> Started backend /usr/local/libexec/cups/backend/socket (PID 98969) for job 267.
> [Job 267] perl: warning: Setting locale failed.
> [Job 267] perl: warning: Please check that your locale settings:
> [Job 267] LC_ALL = (unset),
> [Job 267] LANG = "en"
> [Job 267] are supported and installed on your system.
> [Job 267] perl: warning: Falling back to the standard locale ("C").
> [Job 267] Page = 0x0; 0,0 to 0,0
> [Job 267] slowcollate=0, slowduplex=0, sloworder=0
> [Job 267] 0 %%Title: aushang_mech_neumann.pdf
> [Job 267] 0 %%Creator: PScript5.dll Version 5.2
> [Job 267] 0 %%CreationDate: 2/23/2006 14:36:59
> [Job 267] 0 %%For: todd
> [Job 267] 0 %%BoundingBox: (atend)
> [Job 267] 0 %%Pages: (atend)
> [Job 267] 0 %%Orientation: Portrait
> [Job 267] 0 %%PageOrder: Special
> [Job 267] 0 %%DocumentNeededResources: (atend)
> [Job 267] 0 %%DocumentSuppliedResources: (atend)
> [Job 267] 0 %%DocumentData: Clean7Bit
> [Job 267] 0 %%TargetDevice: (Color Inkjet Printer CP1700) (3010.000) 550
> [Job 267] 0 %%LanguageLevel: 3
> [Job 267] 0 %%EndComments
> [Job 267] 0 %%BeginDefaults
> [Job 267] 0 %%PageBoundingBox: 10 36 585 833
> [Job 267] 0 %%ViewingOrientation: 1 0 0 1
> [Job 267] 0 %%EndDefaults
> [Job 267] 0 %%BeginProlog
> [Job 267] 0 %%BeginResource: file Pscript_WinNT_ErrorHandler 5.0 0
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: file Pscript_WinNT_Min 5.0 0
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: file Pscript_Win_Utils_L2 5.0 0
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset l2check 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1993,2001 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset Adobe_CoolType_Utility_MAKEOCF 1.18 0
> [Job 267] 0 %%Copyright: Copyright 1987-2003 Adobe Systems Incorporated.
> [Job 267] 0 %%Version: 1.18 0
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdfvars 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1987-2002 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%Title: definition of dictionary of variables used by PDF & PDFText procsets
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdfutil 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1993-2001 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%Title: Basic utilities used by other PDF procsets
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdf 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1998-2003 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%Title: General operators for PDF, common to all Language Levels.
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdflev2 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1987-2001,2003 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%Title: PDF operators, with code specific for Level 2
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdftext 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1987-2001 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%Title: Text operators for PDF
> [Job 267] foomatic-rip version $Revision: 3.43.2.12 $ running...
> [Job 267] Parsing PPD file ...
> [Job 267] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
> [Job 267] Added option ColorSpace
> [Job 267] Added option Resolution
> [Job 267] Added option PageSize
> [Job 267] Added option PageRegion
> [Job 267] Added option Model
> [Job 267] Added option PrintoutMode
> [Job 267] Added option ImageableArea
> [Job 267] Added option PaperDimension
> [Job 267] Added option InputSlot
> [Job 267] Added option Duplex
> [Job 267] Added option Quality
> [Job 267] Added option Font
> [Job 267]
> [Job 267] Parameter Summary
> [Job 267] -----------------
> [Job 267]
> [Job 267] Spooler: cups
> [Job 267] Printer: cp1700
> [Job 267] PPD file: /usr/local/etc/cups/ppd/cp1700.ppd
> [Job 267] Printer model: HP Color Inkjet Printer CP1700 Foomatic/hpijs (recommended)
> [Job 267] Job title: smbprn.00000005 aushang_mech_neumann.pdf
> [Job 267] File(s) to be printed:
> [Job 267] <STDIN>
> [Job 267]
> [Job 267] GhostScript extra search path ('GS_LIB'): /usr/local/share/cups/fonts
> [Job 267]
> [Job 267] ================================================
> [Job 267]
> [Job 267] File: <STDIN>
> [Job 267] ================================================
> [Job 267]
> [Job 267] Reading PostScript input ...
> [Job 267] --> This document is DSC-conforming!
> [Job 267] Job claims to be DSC-conforming, but "%%BeginProlog" was missing before \
> first line with another "%%Begin..." comment (is this a TeX/LaTeX/dvips-generated PostScript file?). \
> Assuming start of "Prolog" here.
> [Job 267]
> [Job 267] -----------
> [Job 267] Found: %%BeginProlog
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%BeginResource: procset pdfasc.prc 6.0 1
> [Job 267] 0 %%Copyright: Copyright 1992-2003 Adobe Systems Incorporated. All Rights Reserved.
> [Job 267] 0 %%EndResource
> [Job 267] 0 %%EndProlog
> [Job 267] 0 %%BeginSetup
> [Job 267] 0 %%BeginNonPPDFeature: JobTimeout 0
> [Job 267] 0 %%EndNonPPDFeature
> [Job 267] 0 %%BeginNonPPDFeature: WaitTimeout 300
> [Job 267] 0 %%EndNonPPDFeature
> [Job 267] 0 %%BeginFeature: *PrintoutMode Normal
> [Job 267] 0 %% FoomaticRIPOptionSetting: PrintoutMode=Normal
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%BeginFeature: *InputSlot Default
> [Job 267] 0 %% FoomaticRIPOptionSetting: InputSlot=Default
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%BeginFeature: *Quality FromPrintoutMode
> [Job 267] 0 %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%BeginFeature: *PageRegion A4
> [Job 267] 0 %% FoomaticRIPOptionSetting: PageSize=A4
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%BeginFeature: *Duplex None
> [Job 267] 0 %% FoomaticRIPOptionSetting: Duplex=None
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%BeginFeature: *Resolution 1200dpi
> [Job 267] 0 %%EndFeature
> [Job 267] 0 %%EndSetup
> [Job 267] 0 %%Page: 1 1
> [Job 267] 0 %%Page: 1 1
> [Job 267] pw = 0.0, pl = 0.0
> [Job 267] PageLeft = 0.0, PageRight = 0.0
> [Job 267] PageTop = 0.0, PageBottom = 0.0
> [Job 267] PageWidth = 0.0, PageLength = 0.0
> [Job 267] 0 %%PageBoundingBox: 10 36 585 833
> [Job 267] 0 %%EndPageComments
> [Job 267] 0 %%BeginPageSetup
> [Job 267] 0 %%EndPageSetup
> [Job 267] 0 %%BeginDocument: Pscript_Win_PassThrough
> [Job 267] 1 %%DocumentProcessColors: (atend)
> [Job 267] 1 %%Copyright: Copyright 2006 Adobe System Incorporated. All rights reserved.
> [Job 267] Found: %%EndProlog
> [Job 267]
> [Job 267] -----------
> [Job 267] Found: %%BeginSetup
> [Job 267] Found: %%BeginFeature: *PrintoutMode Normal
> [Job 267] Option: PrintoutMode=Normal --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
> [Job 267] Option: PrintoutMode=Normal --> Setting option
> [Job 267] Found: %%BeginFeature: *InputSlot Default
> [Job 267] Option: InputSlot=Default --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: InputSlot=Default
> [Job 267] Option: InputSlot=Default --> Setting option
> [Job 267] Found: %%BeginFeature: *Quality FromPrintoutMode
> [Job 267] Option: Quality=FromPrintoutMode --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
> [Job 267] Option: Quality=FromPrintoutMode --> Setting option
> [Job 267] Found: %%BeginFeature: *CustomPageSize True
> [Job 267] Unknown option CustomPageSize=True found in the job
> [Job 267] Found: %% FoomaticRIPOptionSetting: PageSize=Custom
> [Job 267] Option: PageSize=Custom --> Setting option
> [Job 267] Found: %%BeginFeature: *Duplex None
> [Job 267] Option: Duplex=None --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: Duplex=None
> [Job 267] Option: Duplex=None --> Setting option
> [Job 267] Found: %%BeginFeature: *PrintoutMode Normal
> [Job 267] Option: PrintoutMode=Normal --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
> [Job 267] Option: PrintoutMode=Normal --> Setting option
> [Job 267] Found: %%BeginFeature: *InputSlot Default
> [Job 267] Option: InputSlot=Default --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: InputSlot=Default
> [Job 267] Option: InputSlot=Default --> Setting option
> [Job 267] Found: %%BeginFeature: *Quality FromPrintoutMode
> [Job 267] Option: Quality=FromPrintoutMode --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
> [Job 267] Option: Quality=FromPrintoutMode --> Setting option
> [Job 267] Found: %%BeginFeature: *PageRegion A4
> [Job 267] Option: PageRegion=A4 --> Correcting numerical/string option \
> to PageRegion=Custom (Command line argument)
> [Job 267] Found: %%BeginFeature: *Duplex None
> [Job 267] Option: Duplex=None --> Setting option
> [Job 267] Found: %% FoomaticRIPOptionSetting: Duplex=None
> [Job 267] Option: Duplex=None --> Setting option
> [Job 267] Found: %%BeginFeature: *Resolution 1200dpi
> [Job 267] Option: Resolution=1200dpi --> Correcting numerical/string \
> option to Resolution= (Command line argument)
> [Job 267] Found: %%EndSetup
> [Job 267] Inserting PostScript code for CUPS' page accounting
> [Job 267]
> [Job 267] -----------
> [Job 267] New page:  1 1
> [Job 267] Inserting option code into "PageSetup" section.
> [Job 267]
> [Job 267] Found: %%BeginPageSetup
> [Job 267] Found: %%EndPageSetup
> [Job 267] End of page header
> [Job 267] Stopping search for page header options
> [Job 267] Found:
> [Job 267] 88.019997 780.679993 l
> [Job 267] --> Output goes directly to the renderer now.
> [Job 267]
> [Job 267]
> [Job 267] Starting renderer
> [Job 267] renderer PID kid4=98971
> [Job 267] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \
> -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 990" \
> -dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0 -dDuplex=false -r300 \
> -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 \
> -dIjsUseOutputFD -sOutputFile=- -
> [Job 267] JCL: <job data>
> [Job 267]
> [Job 267] perl: warning: Setting locale failed.
> [Job 267] perl: warning: Please check that your locale settings:
> [Job 267] LC_ALL = (unset),
> [Job 267] LANG = "en"
> [Job 267] are supported and installed on your system.
> [Job 267] perl: warning: Falling back to the standard locale ("C").
> [Job 267] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' \
> '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 990' \
> '-dDEVICEWIDTHPOINTS=0' '-dDEVICEHEIGHTPOINTS=0' '-dDuplex=false' '-r300' \
> '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7' \
> '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
> [Job 267] Unrecoverable error: configurationerror in setpagedevice
> [Job 267] Operand stack:
> [Job 267] true  --nostringval--
> [Job 267] renderer return value: 255
> [Job 267] renderer received signal: 255
> [Job 267] tail process done writing data to STDOUT
> [Job 267] KID4 finished
> [Job 267] Process dying with "The renderer command line returned an unrecognized error code 255.", \
> exit stat: 1
> [Job 267] error:  (0)
> [Job 267] The renderer command line returned an unrecognized error code 255.
> [Job 267] 1 %%tlI5fbXpoFFa!(dR845V`hbnc?SF75^Y:*9L`@Np)3a at g5\=DQ%)8:"CqT at i\um
> [Job 267] 1 %%mk+J=HUI#%^%"'#4VM5a$kq-pAg.0J67[DEM7'%(ltb07ht$!T4X8p]>uS$U>&K
> [Job 267] 1 %%DocumentNeededResources: ProcSet (CIDInit)
> [Job 267] 1 %%IncludeResource: ProcSet (CIDInit)
> [Job 267] 1 %%BeginResource: CIDFont (ICNKBK+Wingdings-Regular)
> [Job 267] 1 %%Title: (ICNKBK+Wingdings-Regular Adobe Identity 0)
> [Job 267] 1 %%Version: 0
> [Job 267] 1 %%EndResource
> [Job 267] 1 %%Copyright: Copyright 2006 Adobe System Incorporated. All rights reserved.
> [Job 267] 1 %%EndDocument
> [Job 267] 0 %%PageTrailer
> [Job 267] 0 %%Trailer
> [Job 267] Saw Trailer!
> [Job 267] Saw EOF!
> [Job 267]
> [Job 267] Closing renderer
> [Job 267] KID4 exited with status 0
> [Job 267] KID3 exited with status 1
> [Job 267] Renderer exit stat: 1
> [Job 267] Renderer process finished
> [Job 267] Killing process 98970 (KID3)
> [Job 267] Process dying with "Error closing renderer", exit stat: 1
> [Job 267] error: Broken pipe (32)
> [Job 267] Error closing renderer
> UpdateJob: job 267, file 0 is complete.
> CancelJob: id = 267
> StopJob: id = 267, force = 0
> 
> 




More information about the cups mailing list