Hello,
Is there a way to set the measurement scale (calibrate) of an area/perimeter annotation through the API? Ideally, our user would set a scale once, and then all following annotations would be drawn with that scale. Retroactive correction of the calibration scale used would be useful as well.
Thanks
-Billy
Annotation measurement scale
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
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.
-
Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annotation measurement scale
Hello Billy,
You can change the scaling option by using
https://sdkhelp.pdf-xchange.com/vie ... dingsScale
Cheers,
Alex
You can change the scaling option by using
https://sdkhelp.pdf-xchange.com/vie ... dingsScale
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
bneuson
- User
- Posts: 7
- Joined: Thu Mar 17, 2016 1:01 pm
Re: Annotation measurement scale
Alex,
Could you explain the endings scale parameter? For an annotation with a scale I am getting 0 for both start and end.
Thanks,
Billy
Could you explain the endings scale parameter? For an annotation with a scale I am getting 0 for both start and end.
Thanks,
Billy
-
Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annotation measurement scale
Hi Billy,
It seems that I misunderstood you. I wrote a small sample that illustrates what you want:
https://gist.github.com/Polaringu/71432 ... c28ef00f25
Also, you can read the help for better undestanding:
https://sdkhelp.pdf-xchange.com/vie ... ormatArray
https://sdkhelp.pdf-xchange.com/vie ... FormatItem
Cheers,
Alex
It seems that I misunderstood you. I wrote a small sample that illustrates what you want:
https://gist.github.com/Polaringu/71432 ... c28ef00f25
Also, you can read the help for better undestanding:
https://sdkhelp.pdf-xchange.com/vie ... ormatArray
https://sdkhelp.pdf-xchange.com/vie ... FormatItem
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
bneuson
- User
- Posts: 7
- Joined: Thu Mar 17, 2016 1:01 pm
Re: Annotation measurement scale
Alex,
This looks like exactly what I need. Thank you for your help.
-Billy
This looks like exactly what I need. Thank you for your help.
-Billy
-
Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annotation measurement scale
Hello bneuson,
Glad that helped.
Cheers,
Alex
Glad that helped.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ