annotion tools with same id values  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
User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am
Contact:

annotion tools with same id values

Post by MartinCS »

Hello,

is there a reason why the below displayed annot tools do have the same ids of value '3596'?
22-12-_2017_06-11-49.jpg
I need to check which tool is currenty used by the user when he creates an annot of these two types. Can I check if the user clicked 'cmd.tool.annot.distance' or 'cmd.tool.annot.line'?

Thank you!

// Martin
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17893
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: annotion tools with same id values

Post by Tracker Supp-Stefan »

Hi Martin,

I've asked a colleague from the dev team to take a look here, and he said he will post his feedback as soon as possible, but that's likely to be tomorrow.

Happy holidays!
Stefan
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: annotion tools with same id values

Post by Sasha - Tracker Dev Team »

Hello Martin,

The line tool, arrow tool and distance tool have the same type (Line) via the PDF Specification. There is a way to distinguish them by checking the Name property of the tool.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am
Contact:

Re: annotion tools with same id values

Post by MartinCS »

Hi Alex,

currently I'm checking the annotation(s) which has/have been created by the user by iterating the IPXC_Annotations. How can I check the name property of the annot tool which hast been used by the user in order to create an annotation?

I tried the name property of the IPXC_Annoation (https://sdkhelp.pdf-xchange.com/vi ... ation_Name) but the values are not meaningful.

// Martin
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: annotion tools with same id values  SOLVED

Post by Sasha - Tracker Dev Team »

Hello Martin,

Try checking this property:
https://sdkhelp.pdf-xchange.com/vi ... _AnnotType

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