How to control the display of individual annotations ?

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

jgagliardi
User
Posts: 2
Joined: Mon Oct 19, 2009 7:22 pm

How to control the display of individual annotations ?

Post by jgagliardi »

Hi,

I'd like to know if it is possible to control the display of specific annotation, not only by types (all sticky notes, for ex.) but individually.

In order to put my question in context : I have the mandate to implement a PDF viewer accepting annotations, but to save them in a separate DB, so it would be possible to display only the ones that a user can see according to its level of priviledges.

Any suggestions about the way to make it happen in XChange SDK ?

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

Re: How to control the display of individual annotations ?

Post by Corwin - Tracker Sup »

Hello,

No, Viewer AX doesn’t allow doing this. But you can delete unwanted annotations from PDF by using JS.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: How to control the display of individual annotations ?

Post by Lzcat - Tracker Supp »

Maybe a better solution - keep the original file unmodified, and when the user opena it - just add the allowed annotations.

And when closing file - save the changed annotations into your DB, without overwritting your original file....
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
jgagliardi
User
Posts: 2
Joined: Mon Oct 19, 2009 7:22 pm

Re: How to control the display of individual annotations ?

Post by jgagliardi »

Thanks a lot for these suggestions.

Now, does SummarizeAnnots allow to save all the display information for annotations, so I could re-create them exactly where and how they were inserted ? I saw nothing in documentation about this, and according to my tests until now, I can save only the text...
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to control the display of individual annotations ?

Post by Corwin - Tracker Sup »

You can use "Export comments to Data file" method to save all comments including their position.