Using setProperty method on annotation tools

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

reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Using setProperty method on annotation tools

Post by reinierkops »

Hey guys,

Which are the setProperty commands i can use on the annotation tools?

ie:
for setting highlightcolor one uses SetProperty("Annots.Defaults.Hightlight.SColor", ColorTranslator.ToWin32(value), 0);

what can i use to set the following?
  • * opacity of a color / annotation
    *) diameter of the eraser tool
    *) line width of pencil and callout tool
    *) line ending of the callout tool
    *) line style of the callout tool
    *) fill color of the calout tool
    *) stroke color of the callout tool
    *) image to use for stamp tool
cheers
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Using setProperty method on annotation tools

Post by Vasyl - PDF-XChange »

These features and more other will be added into the next build (41 or 42).

Thanks.
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.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Using setProperty method on annotation tools

Post by reinierkops »

Can you tell me if these things are added in this release?

I can't find any changelist or something?

Regards
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Using setProperty method on annotation tools

Post by John - Tracker Supp »

No - we are on build 2.040.7 (released today) - so they are not included -:

Download latest Releases
https://www.pdf-xchange.com/downloads/

here is the version history :
https://www.pdf-xchange.com/home/pr ... r/history/

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Using setProperty method on annotation tools

Post by reinierkops »

Is there already a possibility to set the diameter of the eraser tool, and line width of pencil tool?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Using setProperty method on annotation tools

Post by Vasyl - PDF-XChange »

Not just now, but can be possible in the near future.
But .. you can use undocumented features:
setProperty("Tools.Eraser.Diameter", 20.0, 0); // 20 pt
setProperty("Commenting.Pencil.Styles[0].Border.Width", 2.0, 0); // 2 pt
setProperty("Commenting.Pencil.Styles[0].SColor", <RGB Color>, 0);
setProperty("Commenting.Pencil.Styles[0].Opacity", 0.5, 0); // 50% opacity
Note: in current version these changes will work properly but are unsynchronized with some UI-elements(cmdbars, comment styles palette),
and it requires setup parameters before using corresponding tools..

In next build (probably 41.4) these features (and more) will be finished and documented.
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.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: Using setProperty method on annotation tools

Post by reinierkops »

Where can I find all the supported commands? Or can you send it to me?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Using setProperty method on annotation tools

Post by Corwin - Tracker Sup »

These commands will be added to help file right after their "official" release.