Skip to main content
Participant
May 12, 2017
Question

Mit javacript eine Farbe z.B. ["RGB", 0.18,0.18,0.18] im ganzem Dokument in ["CMYK, 10,0,0,10] ändern

  • May 12, 2017
  • 1 reply
  • 294 views

Hallo,

https://acrobatusers.com/tutorials/using-colors-acrobat-javascript  hier steht das man die Farbe convertieren kann

aber bei mir funktionierte es nicht, er macht gar nichts. Muss ich da irgent eine Schleife bauen um jedes einzelne Objekt zu ändern

oder wie löst man so etwas?

var cmykBlue = color.convert(["RGB", 0.18,0.18,0.18],["CMYK, 10,0,0,10]);

Danke für jede Bemühungen

Gruß

Jürgen

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 12, 2017

The second parameter should only be the name of the color-space to which you're converting. Use this code:

var cmykBlue = color.convert (["RGB", 0.18,0.18,0.18],"CMYK");