Need to pass document filename to filters

Dennis W. Tokarski dwt at PolTec.COM
Tue Nov 6 06:46:20 PST 2007


Kurt Pfeifle wrote:
> Dennis W. Tokarski wrote:
>> Hi,
>>
>> Recently I've been handed a print system requirement that each page
>> regardless of source format or destination printer shall have a footer
>> and/or headers added showing various job properties--job id, page
>> number, etc.

[snip]

> 
> There is no such thing as an "original document file name" when it
> comes to CUPS printing.
> 
> There is only the "title" parameter (which is set by *some* applica-
> tions to the same as the orginal file name). CUPS filters see that
> parameter as argv[3]
> 
> For web browsers, the next-best thing after accepting what argv[3]
> tells you, may be looking for the "%%Title:" line in the PostScript
> file (and trying to strip what's not whanted from the URL). Attention,
> Firefox uses that line also its font embedding parts!
> 
>> Sometimes the title winds up being the file basename, but that's
>> hardly consistent.

Well, this isn't what I was hoping to hear of course, but it's still
going to help me find something workable. At least I won't spend time
on a lot of dead end possibilities.

Thanks, both of you, for your replies.

Best,

  --Dennis


>>
>> Does anyone here see any way to reliably pass the original document
>> file name through to the filters?  The CUPS servers is on an Ubuntu
>> Feisty box and all jobs originate locally if that helps.
> 
> 




More information about the cups mailing list