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

How to set colors for bookmarks in Vc++/win32

Explorer ,
Feb 17, 2022 Feb 17, 2022

Hi,

I'm Using PDColorvalue object, I'm able to do Three colors(RGB)  to set for bookmarks.

PDColorValueRec red, blue, green;
//Define red
red.space = PDDeviceRGB;
red.value[0] = ASInt32ToFixed(1);
red.value[1] = 0;
red.value[2] = 0;

PDBookmarkSetcolor(aBookmark,&red).

 

How to set Remaining colors like CMYK(cyan,yellow,magento,black)same way? please suggest.

What should parameters will use?

 

[Question moved to the Acrobat SDK forum]

TOPICS
Acrobat SDK and JavaScript
533
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
LEGEND ,
Feb 17, 2022 Feb 17, 2022

The PDF specification allows only DeviceRGB colours for bookmarks. It is impossible to specify any other colour (since it only takes the three color values, not the colour space).

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
Explorer ,
Feb 17, 2022 Feb 17, 2022

Thank your kind information. Can i use color picker? After pick color and how to apply for bookmarks.

Please help on this.

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 ,
Feb 17, 2022 Feb 17, 2022

Convert the CMYK to RGB.  It's a simple calculation. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Explorer ,
Feb 17, 2022 Feb 17, 2022

Already I tried that values and assigned no use.

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 ,
Feb 18, 2022 Feb 18, 2022
LATEST

What code are you using?

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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