compression=gzip and RAW Print Queues (ipp)

Helge Blischke h.blischke at acm.org
Fri Sep 30 06:01:37 PDT 2011


Andrew Powell wrote:

> Would there be a way to modify the PPD file so it would get decompressed
> and sent to the printer without any further processing?
> 
> If the printer was setup as a Generic Text-Only printer, what would need
> to change in the /etc/cups/ppd/jaxshop.ppd file so no post-processing
> would occur?  Could something like this even work?
> 
> On 9/29/11 2:53 PM, Andy Powell wrote:
>> How do I get CUPS to decompress compressed data for Raw printers?
>>
>> In the main office, I have
>> ipp://remote.mydomain.com:631/printers/jaxshop?compression=gzip which is
>> just a raw print queue.
>>
>> And in the remote office, I have socket://jaxshop.mydomain.com:9100
>>
>> When set to Raw, the compressed data is sent directly to the printer (it
>> is not decompressed) and comes out as garbage.  If it is set to the
>> printer definition, (e.g. HP LaserJet) it decompresses but this can't be
>> done in some cases (e.g. HP/GL and Calcomp plotters).
>>
>> Anyone know of a fix/workaround?

>From my understanding of how CUPS works, I suggest to try the following:
Set up a PPD for the printer which - besides the "header stuff" only 
contains cupxFilter lines for all the document types the printer should 
qaccept as ras data:

*cupsFilter: "text/plain 0 -"
*cupsFilter: "application/vnd.hp-HPGL 0 -"

and so on.
CUPS then should invoke the gziptoany filter.

Helge





More information about the cups mailing list