I would like to import comments and fields into a document which is currently opened in the Pdf Editor without the use of a UI dialog showing up to select the desired fdf file.
Following the new 'OperationDemo' class in the FullDemo (v315) I was trying to implement this code in my application. But with no success.
Code: Select all
try
{
var op = pdfCtl.Inst.CreateOp(pdfCtl.Inst.Str2ID("op.document.importCommentsAndFields"));
if (op == null)
{
return;
}
op.Params.Root["Input"].v = fsInst.DefaultFileSys.StringToName("d:\\temp\\2.fdf");
op.Do();
}
catch
{
// ignored
}
Thank you in advance for your help!
Martin