is it possible to convert specific cmyk colors in pdf generation process?
In my case I have simulated colors for the customer like for example gold with value C15 M30 Y70 K20. This color must be replaced for the printer who uses a real gold foil. There for the CMYK value must be changed to C0 M100 Y0 K0 as well as the color must be a solid color instead of process color and last but not least it must get a specific color name. In this case „goldfoil“.
So can ghost script look for the specific CMYK values and replace them?
Any hint would be very helpful
No, you can't have Ghostscript alter colour values like that.
The correct way to do this is to create the PostScript program with a /Separation colour space, and define the alternate as a CMYK space with specific CMYK values to be used when the ink is not supported.
When the pritner supports the named ink 'goldfoil' it will print using the Gold ink (or foil in your case), when the named ink is not supported the printer will use the alternate space and colour values. That lets your customer see an approximation of the result on a CMYK printer, but your printer will be able to produce the true gold output.