Creating annotation by code

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

ActionBase
User
Posts: 3
Joined: Wed Nov 11, 2009 11:37 am

Creating annotation by code

Post by ActionBase »

Hi guys,
Can you please refer me to samples/documentations to to the following:
1)User opens a pdf doc
2)User selects text in the document
3)User press a button in the wrapper application (.net) and the application call the PDF API to create a link/bookmark/cellout annotation in the doc. The annotation is creation near the selected text. The annotation contains the selected text from the document
4)User saves the PDF
5)When user clicks on the annotation he created the wrapping application get an event and opens a window

Thanks
AB
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Creating annotation by code

Post by Corwin - Tracker Sup »

Hello ActionBase,

For now Viewer AX doesn't support such events as click on annotation. And you cannot get the coordinates of selected text.

You may however be interested in the special Commenting settings for the Viewer (Edit->Preferences->Commenting) which can help to create a commenting object - and copy text from the selection.

HTH.
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: Creating annotation by code

Post by DSSavant »

I too would like to have this type of capabilities. Please consider this a feature request.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Creating annotation by code

Post by Corwin - Tracker Sup »

Hi,

In this build we have added a function that allows you to obtain the text coordinates. Using these coordinates you can create annotation via JS.