[cups.general] problem with postscript %%title

Johannes Meixner jsmeix at suse.de
Tue Sep 28 02:55:39 PDT 2010


Hello,

On Sep 27 23:24 ulrich.lauther at t-online.de wrote (shortened):
> On Mon, Sep 27, 2010 at 01:28:17PM -0700, Michael Sweet wrote:
>> There isn't a way to do this today, but feel free to submit a feature request for this:
>>
>>     http://www.cups.org/str.php
>>
>> On Sep 27, 2010, at 7:17 AM, Daniel Stoeck wrote:
>>
>>> I know this is not a pure CUPS problem. But I thought I might find my answer here.
>>> I want to use following command:
>>>
>>>    lp -d THEPRINTERNAME -t THETITLEIWANT /tmp/theepsfilename.ps
>>>
> you should be able to do it this way:
>
> change_title -t THETITLEIWANT /tmp/theepsfilename.ps | lp -d THEPRINTERNAME
>
> where change_title would be a tiny script using e.g. perl, awk, or sed that
> changes the %%Title: -line.

And this could be even automated in a similar way as described in
"Adding Additional Filter Stages to the Default CUPS Filter System" at
http://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex





More information about the cups mailing list