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

annotion tools with same id values

Post by MartinCS » Fri Dec 22, 2017 5:17 am

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: 13508
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: annotion tools with same id values

Post by Tracker Supp-Stefan » Fri Dec 22, 2017 1:12 pm

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

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

Re: annotion tools with same id values

Post by Sasha - Tracker Dev Team » Sat Dec 23, 2017 6:50 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

User avatar
MartinCS
User
Posts: 152
Joined: Thu Apr 07, 2011 10:01 am
Contact:

Re: annotion tools with same id values

Post by MartinCS » Mon Jan 08, 2018 6:16 am

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.tracker-software.com/vi ... ation_Name) but the values are not meaningful.

// Martin

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

Re: annotion tools with same id values  SOLVED

Post by Sasha - Tracker Dev Team » Tue Jan 09, 2018 9:09 am

Hello Martin,

Try checking this property:
https://sdkhelp.tracker-software.com/vi ... _AnnotType

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply