Annotation content

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
betterRunner
User
Posts: 7
Joined: Fri Nov 23, 2018 8:44 am

Annotation content

Post by betterRunner »

Hi there,

I got a question that is the PDF-XChange Viewer SDK owns the ability to extra the contens of annotation (highlight and etc.).

A similar question is here: viewtopic.php?f=36&t=29104&p=113906&hilit=text#p113906 but the answer is about Editor SDK, I want to know if Viewer SDK can do the same thing or not.

Thank you very much!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Annotation content

Post by Tracker Supp-Stefan »

Hello betterRunner,

The JS should work the same in the Viewer SDK as well. Give it a try with the RunJavaScript method and the JS code from that other topic!

Regards,
Stefan
betterRunner
User
Posts: 7
Joined: Fri Nov 23, 2018 8:44 am

Re: Annotation content

Post by betterRunner »

Hello Stefan,

Thanks for your help.

The code did work in Viewer SDK as well.

I just got another question about the "annotation quads" if you don't mind, that is:

Since I got the quads of one annotation, together with page number, am I able to jump to the annotation by program?
(I know by clicking the item in "comment list" I can jump to the annotation, but in my application I need to extra the annotations outside the tool so I need to jump by its quads).

Thank you very much!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Annotation content

Post by Tracker Supp-Stefan »

Hello betterRunner,

You would need to use this method:
MovePointToScreenPoint

And you will probably need some of these methods as well:
PagePointsToViewPoints
TranslateScreenPoint
ViewPointsToPagePoints

But the help system for the Viewer is a bit older now - and linking to it is a bit tricky - so please do use the search field once you click on the first link to find the other methods.

Regards,
Stefan
betterRunner
User
Posts: 7
Joined: Fri Nov 23, 2018 8:44 am

Re: Annotation content

Post by betterRunner »

Hello Stefan,

The api you mentioned works, and we are now actually plan to use the Editor SDK for some other reasons.

So how to achieve this in Editor SDK? The functions' name seem have changed.

Thanks.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Annotation content

Post by Tracker Supp-Stefan »

Hello betterRunner,

Yes the Editor SDK was pretty much rewritten from scratch, and has nothing in common with the Viewer one.

I believe you will need to start here for 'moving' around a document via the Editor SDK code:
https://sdkhelp.pdf-xchange.com/vi ... outManager

But please note that I am myself still learning that SDK, so if you have any Editor SDK questions - I would recommend you to post them in the Editor SDK specific forums, as my colleagues from the dev team are active there (and not so much here) - and will be able to assist you as needed!

Regards,
Stefan
betterRunner
User
Posts: 7
Joined: Fri Nov 23, 2018 8:44 am

Re: Annotation content

Post by betterRunner »

Got it, thank you Stefan!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Annotation content

Post by Tracker Supp-Stefan »

:D
Post Reply