Changing of the fillcolor for the highlight tool  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Changing of the fillcolor for the highlight tool

Post by AteBe »

Hallo Alex,
I set the active tool to tool.annot.highlight and then I would like to change the fill color to black.
Unfortunately, I have not found the correct command for changing the color.
How can I do this?
FillColor.PNG
AteBe
AnKeilha
User
Posts: 63
Joined: Fri Apr 27, 2018 11:17 am

Re: Changing of the fillcolor for the highlight tool

Post by AnKeilha »

Using the old Viewer SDK this could be done like so:

int curStyleID = getProperty("Tools.Highlight.Style").getInt();
String curStylePath = "Commenting.Highlight.Styles[#" + curStyleID + "].";
setProperty(curStylePath + "Opacity", 1.0);
setProperty(curStylePath + "BlendMode", "Normal", 0);
setProperty(curStylePath + "FColor", "Black", 0);
setProperty(curStylePath + "SColor", "Black", 0);

What would be the correct way to do this using the new PdfXChange Editor SDK?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Changing of the fillcolor for the highlight tool  SOLVED

Post by Sasha - Tracker Dev Team »

Hello AteBe,

Check out this topic:
viewtopic.php?f=66&t=24223

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply