Changing of the fillcolor for the highlight tool  SOLVED

PDF-XChange Editor SDK for Developers

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

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
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Changing of the fillcolor for the highlight tool

Post by AteBe » Mon Apr 01, 2019 7:42 am

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?

Posts: 40
Joined: Fri Apr 27, 2018 11:17 am

Re: Changing of the fillcolor for the highlight tool

Post by AnKeilha » Tue Apr 02, 2019 7:07 am

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?

User avatar
Sasha - Tracker Dev Team
Posts: 4885
Joined: Fri Nov 21, 2014 8:27 am

Re: Changing of the fillcolor for the highlight tool  SOLVED

Post by Sasha - Tracker Dev Team » Tue Apr 02, 2019 7:21 am

Hello AteBe,

Check out this topic:

Join us at Google+:
Subscribe at:

Post Reply