color management for annotations

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am

color management for annotations

Post by MartinCS »

Hi all,

is it possible to use custom colors for the annotation tools available in the viewer? For all I know it is only possible to use standard RGB colors (white, black, red, green, blue, gray, grey).

To set the color for e.g. the annotation tool 'cloud' I'm using the following code:

Call g_oPdfViewer.SetProperty("Commenting.Cloud.Styles[0].SColor", "blue", 0)

Using this method I wasn't able to set custom colors.

I hope you guys are able to help me with this problem as we desperately need an option for that.

Thank you,
Martin
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: color management for annotations

Post by Vasyl - PDF-XChange »

Hi, MartinCS.

Code: Select all

Dim RGB_val As Integer

RGB_val = RGB(red, green, blue)

Call g_oPdfViewer.SetProperty("Commenting.Cloud.Styles[0].SColor", RGB_val, 0)
About RGB type (COLORREF in Windows API): http://msdn.microsoft.com/en-us/library ... 85%29.aspx

HTH
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.