Iterate through imported comments

PDF-XChange Editor SDK for Developers

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

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.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Iterate through imported comments

Post by lidds »

I am importing comments from files using the following code:

Code: Select all

Public Sub importComments(ByVal annotationFileOID As String)
        Dim nIDImport As Integer = pxvInst.Str2ID("op.document.importCommentsAndFields", False)
        Dim opImport As PDFXEdit.IOperation = pxvInst.CreateOp(nIDImport)
        Dim inputImport As PDFXEdit.ICabNode = opImport.Params.Root("Input")
        inputImport.v = Me.docPreview.Doc
        Dim optionsImport As PDFXEdit.ICabNode = opImport.Params.Root("Options")
        optionsImport("FileName").v = MISData.Instance.DocShareName & "\Annotations\" & annotationFileOID & ".fdf"
        opImport.Do()
    End Sub
This all works perfectly, however what I was wondering is if there is a iterate through JUST the annotations contained in the imported file and not through any other annotations currently on the document?

Thanks

Simon
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Iterate through imported comments

Post by lidds »

Don't worry I have found that when importing the e_annots_changed event is fired and am able to achieve it through this.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Iterate through imported comments

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply