CFPDFFORM 在填充期间从源 PDF 中删除所有数据集!该怎么办?
我有一个 LiveCycle 动态 PDF 表单,其中包含大量数据集,其中存储基本信息以提供下拉字段。以下是其 XML 源代码的摘录:
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<MyDataForDropDowns>
<Languages>
<Language id=""/>
<Language id="1">English</Language>
<Language id="2">French</Language>
<Language id="3">German</Language>
</Languages>
</MyDataForDropDowns>
<xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>
我使用 cfpdfform 来预填写此 pdf 表单:
<cfpdfform source="pdf/FormA.pdf"
action="populate"
overwritedata="true"
xmldata="#xmlStringFormData#">
</cfpdfform>
表单加载完毕,但绑定到数据集的下拉字段均不起作用!你猜怎么着,cfpdfform 删除了我所有的数据集。在Livecycle中打开cfpfdform发送的pdf显示:
...
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>
有谁知道发生了什么???
这附近还有吗?
I have a LiveCycle Dynamic PDF form that has lots of datasets where basic information are stored to feed dropdown fields. Here is an excerpt of its XML source:
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<MyDataForDropDowns>
<Languages>
<Language id=""/>
<Language id="1">English</Language>
<Language id="2">French</Language>
<Language id="3">German</Language>
</Languages>
</MyDataForDropDowns>
<xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>
I use cfpdfform to pre-fill this pdf form:
<cfpdfform source="pdf/FormA.pdf"
action="populate"
overwritedata="true"
xmldata="#xmlStringFormData#">
</cfpdfform>
Form loads up and none of my dropdown fields binded to datasets work! Guess what, cfpdfform removed all my datasets. Opening the pdf sent by cfpfdform in Livecycle shows this:
...
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:data xfa:dataNode="dataGroup"/>
</xfa:datasets>
...
</xdp:xdp>
Does anyone know what is going on???
Is there anyway around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎缺少
destination
属性,或者这只是一个遗漏?It seems as though you are missing your
destination
attribute, or was this simply an omission?