0

我正在使用 Adob​​e Echo Sign API createwidget 来签署文档,我想添加可编辑字段,就像我们在这里选择“预览、定位签名或添加表单字段”时得到 一样,我已经附上了屏幕截图,字段 我也尝试过使用 MergeField createwidget 的信息,但它没有在小部件API 文档上创建字段

这是我的代码

WidgetCreationInfo widgetinfo = new WidgetCreationInfo(widgetname, fileInfos);

MergeField[] mergedfields = new MergeField[1];
mergedfields[0] = new MergeField();
mergedfields[0].fieldName = "name";
mergedfields[0].defaultValue = "Salman";

MergeFieldInfo mergedfieldinfo = new MergeFieldInfo();
mergedfieldinfo.mergeFields = mergedfields;

widgetinfo.mergeFieldInfo = mergedfieldinfo;
4

1 回答 1

0
MergeField[] mergedfields = new MergeField[4];
mergedfields[0] = new MergeField();
mergedfields[1] = new MergeField();
mergedfields[2] = new MergeField();
mergedfields[3] = new MergeField();
mergedfields[0].fieldName = "name";
mergedfields[0].defaultValue = "Your value";
mergedfields[1].fieldName = "your fildname";
mergedfields[1].defaultValue = "Your value";
mergedfields[2].fieldName = "your fildname";
mergedfields[2].defaultValue = "Your value";
mergedfields[3].fieldName = "your fildname";
mergedfields[3].defaultValue = "Your value"; 

我尝试使用上面的代码并且它工作顺利..

于 2014-12-02T09:07:14.140 回答