Annot Status not saved when exporting...

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

Annot Status not saved when exporting...

Post by lidds »

I am using the exportCommentsAndFields method and it does not seem to save the annotation status??

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annot Status not saved when exporting...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Can you provide a code sample on how you are using this operation?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annot Status not saved when exporting...

Post by lidds »

Alex,

I am exporting the annotations like so:

Code: Select all

Dim nID As Integer = pxvInst.Str2ID("op.document.exportCommentsAndFields")
            Dim pOp As PDFXEdit.IOperation = pxvInst.CreateOp(nID)
            Dim input As PDFXEdit.ICabNode = pOp.Params.Root("Input")
            input.v = Me.docPreview.Doc

            Dim fsInst As PDFXEdit.IAFS_Inst = DirectCast(Me.docPreview.Inst.GetExtension("AFS"), PDFXEdit.IAFS_Inst)
            Dim destPath As PDFXEdit.IAFS_Name = fsInst.DefaultFileSys.StringToName(MISData.Instance.DocShareName & "\Annotations\" & annotationFileOID.ToString & ".fdf")

            Dim output As PDFXEdit.ICabNode = pOp.Params.Root("Output")
            output.v = destPath

            Dim options As PDFXEdit.ICabNode = pOp.Params.Root("Options")
            options("ExportAnnots").v = True
            options("ExportFields").v = True
            options("DestFile").v = destPath
            pOp.Do()
And importing the annotation file like so:

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
Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annot Status not saved when exporting...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Can you confirm that the export to FDF does not export the status. or the import from the FDF does not import the exported status?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Annot Status not saved when exporting...

Post by lidds »

Alex,

Have just figured out these is a problem with my code on another method. Please ignore this thread.

Sorry

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Annot Status not saved when exporting...

Post by Sasha - Tracker Dev Team »

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