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?
AteBe
Changing of the fillcolor for the highlight tool SOLVED
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.
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.
Re: Changing of the fillcolor for the highlight tool
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?
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
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Changing of the fillcolor for the highlight tool SOLVED
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ