[cups.general] command returning a value of option

Johannes Meixner jsmeix at suse.de
Tue May 29 05:36:35 PDT 2012


Hello,

On May 29 04:49 Ji?í Tempír wrote (excerpt):
> Is it possible to execute a command inserted in PPD file?
> In PPD http://www.openprinting.org/ppd-o-matic.php?driver=Postscript-Ricoh&printer=Ricoh-Aficio_MP_C3001&show=1

When it is a Foomatic PPD file you may enhance the
FoomaticRIPCommandLine as you need.
Example for the PPD above:
-----------------------------------------------------------------
*FoomaticRIPCommandLine: "printf "%%!PS-Adobe-3.0\n&&
%%%% %%%%\n%A%B%C%D"%%%%;&&
/path/to/your/command;"
*End
-----------------------------------------------------------------
/path/to/your/command is an executable that reads from stdin,
modifies the PostScript as you need, and outputs at stdout.

In general you may have a look at
http://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS
in particular the sections regarding
"Adding Additional Filter Stages to the Default CUPS Filter System"


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer


More information about the cups mailing list