如何命名“组”当想要通过 FDF / XFDF 填写表格时,在 Adobe Reader 中选中复选框
我已成功通过 fdf 文件和 xfdf 文件填充普通 pdf 文本字段。我的问题是我需要选中一些复选框。
我已阅读这篇题为“FDF - 如何选中复选框?”的文章但我仍然无法让我的工作。
我感到困惑的一件事是我应该如何命名 pdf 表单上的复选框。如果我有一组名为“性别”的单选按钮,我该如何在 pdf 表单上命名它们。 Adobe 表单上的复选框的单选组是否有相同的想法?
到目前为止,使用“性别”示例,我只是将复选框命名为“genderM”和“genderF”,但 fdf:
<< /T (genderM) /V (Yes) >>
不会选中“genderM”框。
非常感谢有关此问题的任何帮助以及有关最佳实践的任何建议。
回顾:
- Adobe Reader 在命名 pdf 表单的输入字段时是否有复选框或单选组的概念?
- 无论是或否,我如何勾选此框?
非常感谢
I've managed to populate ordinary pdf text fields via an fdf file and via an xfdf file. My problem is that I need to check some checkboxes.
I have read this article entitled 'FDF - how to check a checkbox?' but I still can't get mine to work.
One of the things I'm confused with is how I should be naming the checkboxes on the pdf form. If I have a group of radio buttons called 'gender' how do I name them on the pdf form. Is there the same idea of a radio group for the checkboxes on an Adobe form?
So far, and using the 'gender' example, I have simply named the checkboxes 'genderM' and 'genderF', but the fdf:
<< /T (genderM) /V (Yes) >>
does not check the 'genderM' box.
Really grateful for any help on this issue and any advice on best practices.
Recap:
- Does Adobe Reader have the concept of a checkbox or radio group when naming the input fields for the pdf form?
- Whether yes or no, how do I check the box?
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我花了很长时间才弄清楚我哪里出了问题。根据我引用的另一篇文章,我的问题中显示的语法是正确的。
我正在使用其他人的表单,他们设置了“导出值”字段(在编辑 pdf 表单时) Adobe Reader)将复选框设置为“打开”。导出值字段似乎决定了您使用什么词来选择复选框。所以我应该使用 fdf 行:
如上图所示,默认值是“是”,这意味着我使用:
希望将来能帮助别人。
干杯
Took me quite a while to figure out where I was going wrong. The syntax shown in my question was correct as per the other article I referenced.
I was using someone else's form and they had set the Export Value field (while editing the pdf form in Adobe Reader) for the checkbox to 'ON'. It seems like the Export Value field determines what word you use to select the checkbox. So I should have been using the fdf line:
The default value, as shown in the above image is 'Yes', which would mean I use:
Hope that helps someone in future.
Cheers