Detect Pdf Modifications

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
entropics
User
Posts: 10
Joined: Wed Jul 02, 2014 7:00 am

Detect Pdf Modifications

Post by entropics » Tue Sep 23, 2014 8:14 am

Hello,

Is it possible to detect Pdf modifications "on the fly" (via an event) for those operations:
- Page deleted
- Page moved
- Page Added

Besides, it looks like some notifications (such as Notifications.NewAnnotAdded) are not present in the SDK manual.
Is there a definitive list of all available notifications somewhere?

Thanks!

Best regards

Serg - Tracker Dev
User
Posts: 14
Joined: Wed Sep 17, 2014 7:40 am
Location: Ukraine

Re: Detect Pdf Modifications

Post by Serg - Tracker Dev » Tue Sep 23, 2014 3:26 pm

As I can lookup inside library, there no any events, that correspond to changes with pages count.

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1923
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Detect Pdf Modifications

Post by Vasyl-Tracker Dev Team » Tue Sep 23, 2014 11:30 pm

Hi, entropics.

For events:
- Page deleted
- Page Added

you may catch the event:

Code: Select all

OnEvent(type, name, ...)
{
    if ((type == PXCVA_OnPropertyChanged) AND (StrStr(name, ".Pages.Count") != null))
    {
          int docID = 0;
          pdfControl.GetDocumentFromName(name, out docID, null);
          if (docID > 0)
          {
                // pages has been inserted or deleted inside 'docID' document 
          }
    }  
}
But no way to get event:

- Page moved

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Post Reply