Skip to main content
Inspiring
February 17, 2022
Question

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

  • February 17, 2022
  • 2 replies
  • 591 views

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]

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
February 17, 2022

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

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
February 18, 2022

Already I tried that values and assigned no use.

Thom Parker
Community Expert
Community Expert
February 18, 2022

What code are you using?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Legend
February 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).

Inspiring
February 18, 2022

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

Please help on this.