Properties for HighlightTextTool

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

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

Post Reply
RudolfErnst
User
Posts: 73
Joined: Tue Oct 14, 2008 2:14 pm
Location: Munich, Germany

Properties for HighlightTextTool

Post by RudolfErnst »

Hello,

I am using the ActiveX Plugin from Java and want to set the properties BlendMode, FillColor and Opacity for the HighlightTextTool. However I can't find the correct names and settings in the documentation. I want to do something like:

setProperty("Commenting.HighlightTextTool.Styles.Opacity", 100.0);

Is this possible? Is there a list of all properties I can set?

Kind regards
Rudi
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Properties for HighlightTextTool

Post by Vasyl-Tracker Dev Team »

Hi Rudi.

The correct way:

Code: Select all

int curStyleID = 0;
pdfViewer.GetProperty("Tools.Highlight.Style", out curStyleID, 0);

string curStylePath = "Commenting.Highlight.Styles[#" + curStyleID + "].";
pdfViewer.SetProperty(curStylePath + "SColor", RGB(255, 0, 255), 0);
pdfViewer.SetProperty(curStylePath + "FColor", RGB(0, 255, 255), 0);
pdfViewer.SetProperty(curStylePath + "Opacity", 0.5, 0);
pdfViewer.SetProperty(curStylePath + "BlendMode", "Overlay", 0);
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
RudolfErnst
User
Posts: 73
Joined: Tue Oct 14, 2008 2:14 pm
Location: Munich, Germany

Re: Properties for HighlightTextTool

Post by RudolfErnst »

Thank you much Vasyl,

it works perfect.

Another question: Where can I find such kind of information. Normaly I use the PDF XChange Viewer SDK Reference. Is there something like a programming manual or tips and tricks or something else.

kind regards
Rudi
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17908
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Properties for HighlightTextTool

Post by Tracker Supp-Stefan »

Hello Rudi,

The Manual is indeed the best place to search for such information, and if you've tried but could not find it yourself - you can always ask here in the forums!

Have you seen the online version of the manual?
https://help.pdf-xchange.com/DEV/de ... n=vwraxsdk

Regards,
Stefan
Post Reply