PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: TrackerSupp-Daniel, Tracker Support, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Paul - Tracker Supp, Ivan - Tracker Software, Sean - Tracker, 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.
 
lidds
User
Topic Author
Posts: 334
Joined: Sat May 16, 2009 1:55 pm

Iterate through imported comments

Tue Dec 05, 2017 12:46 pm

I am importing comments from files using the following code:

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
Topic Author
Posts: 334
Joined: Sat May 16, 2009 1:55 pm

Re: Iterate through imported comments

Tue Dec 05, 2017 2:58 pm

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

Re: Iterate through imported comments

Tue Dec 05, 2017 3:08 pm

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Who is online

Users browsing this forum: No registered users and 2 guests