[cups.general] Re: printing from adobe css applications printsgarbage

Helge Blischke h.blischke at srz.de
Thu Mar 16 08:56:06 PST 2006


Ryan Suarez wrote:
> 
> Hello,
> 
> I'm sorry.  I'm not too familiar with this.
> 
> What do I need to put in mime.types?
> 
> You can view the problem jobfile/controlfile and existing mime.types here:
> http://it.sheridanc.on.ca/cups/
> 
> Your help is greatly appreciated.
> 
> thanks,
> Ryan
> 
> <snip>
> The PostScript job begins with PJL commands, but the "@PJL ENTER
> LANGUAGE = POSTSCRIPT" is
> missing. That is why CUPS treats the job as plain text.
> 
> I'd suggest to modify the mime.types accordingly.
> 
> Helge
> 
> Ryan Suarez wrote:
>    >
>    > Greetings Admins,
>    >
>    > mac os x 10.4 client printing to samba-3.0.21a/cups-1.2svn-r4876
> server,
>    > using smb://username:passwd@printserver/queuename URI
>    >
>    > When user prints from any of the Adobe CSS applications, the actual
>    > postscript commands get printed (around 50+ pages).  I can see from the
>    > server logs that cups see's the jobfile as a plain/text:
>    >
>    > D [09/Jan/2006:10:38:11 -0500] print_job: auto-typing file...
>    > D [09/Jan/2006:10:38:11 -0500] print_job: request file type is
> text/plain.
>    >
>    > I have attached a problem control file, jobfile, and error log (with
>    > only the relevant info) for your perusal.  How do I make cups print
>    > these documents normally?
>    >
>    > much appreciated,
>    > Ryan
> </snip>

Modify your mime.types as follows:
<snip>
application/postscript		ai eps ps string(0,%!) string(0,<04>%!) \
				contains(0,128,<1B>%-12345X) + \
				(contains(0,1024,"LANGUAGE=POSTSCRIPT") \
				 contains(0,1024,"LANGUAGE = Postscript") \
				 contains(0,1024,"LANGUAGE = PostScript") \
				 contains(0,1024,"LANGUAGE = POSTSCRIPT") \
                                 contains(0,1024,"%!PS"))
</snip>

This is a hack, of course, and you should file a bug report to Apple on this issue.

Helge

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




More information about the cups mailing list