We have a problem when exporting annotations to a FDF file like this:
Code: Select all
//export to file
var op = _Inst.CreateOp(_Inst.Str2ID("op.document.exportCommentsAndFields", false));
op.Params.Root["Input"].v = _Inst.ActiveDoc;
ICabNode cabNode = op.Params.Root["Options"];
cabNode["ExportAnnots"].v = true;
cabNode["ExportFields"].v = false;
cabNode["IncludeEmptyFields"].v = true;
cabNode["ExportFieldFlags"].v = true;
cabNode["Format"].v = "FDF";
var name = ((IAFS_Inst)_Inst.GetExtension("AFS")).DefaultFileSys.StringToName(FDFfilename, 0, (IAFS_Name)null);
cabNode["DestFile"].v = name;
op.Do();
has a lot of stream/endstream separated binary data, this causes problem for our parser.
Is it possible to avoid exporting the attachement binary data when doing this export?
We use the latest SDK.