printing from iMac fails

Helge Blischke h.blischke at srz.de
Sat Dec 3 11:02:43 PST 2005


Christoph Litauer wrote:
> 
> Dear cups-admins,
> 
> one of our users has a brandnew iMAC. If he starts a print job to our
> cups server, nothing is printed.
> 
> I analysed the problem and found, that the final postscript code
> contains variable definitions like:
> 
> -------------
> %%BeginSetup
> /CUPS_ENV_OPT
> <<      % Environment variables and command line options
>   /CHARSET (utf-8)
>   /CONTENT_TYPE (application/pdf)
>   /DEVICE_URI (file:/var/tmp/test.out)
>   /LANG (de)
>   /PRINTER (test)
>   /SOFTWARE (CUPS/1.1)
>   /USER (root)
>   /CURRENT_DATE (Friday, 25. November 2005 09:41)
>   /NOWDATE (2005-11-25 329)
>   /NOWTIME (09:41:27)
>   /HPwmSwitch (Off)
>   /HPwmBrightness (Medium)
>   /HPwmTextAngle (Deg45)
>  ....
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.ticket.version
> (10.4.0)
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.subTicket.paper_info_ticket..d.com.apple.print.ticket.version
> (10.4.0)
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.subTicket.paper_info_ticket..d.com.apple.print.PageFormat.PMAdjustedPaperRect..a.0..n.
> (-18.008336946550838)
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.subTicket.paper_info_ticket..d.com.apple.print.PageFormat.PMAdjustedPaperRect..a.1..n.
> (-18.008336946550838)
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.subTicket.paper_info_ticket..d.com.apple.print.PageFormat.PMAdjustedPaperRect..a.2..n.
> (824.38164688654945)
> /com.apple.print.subTicket.page_format_ticket..d.com.apple.print.subTicket.paper_info_ticket..d.com.apple.print.PageFormat.PMAdjustedPaperRect..a.3..n.
> (577.26724545332411)
> .....
> ---------------
> 
> As you can see, the environment definitions when sending the job to the
> cups server contains very long variable names. The printer (HP Laserjet
> 4050) refuses to print that code complaining about a "limitcheck".
> 
> As a solution I inserted a filter, that deletes lines starting with
> /com.apple.print, but this is an ugly workaround. Any other/better
> solutions available? Is it possible to prevent the generation of
> CUPS_ENV_OPT?
> 
> --
> Regards
> Christoph

This bug in the alternate pstops filter has been fixed. To prevent running into an offset by one
issue, the max. length of option names has beed restricted to 126 characters.

One more bug has been fixed: parantheses in the job name are now escaped with a backslash to
avoid occasional PostScript errors.

The new version (1.93k) is available via the links on the CUPS web site.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list