Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
May 12, 2017 May 12, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
271
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2017 May 12, 2017
LATEST

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");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines