How to name a 'group' check box in Adobe Reader when wanting to fill form by FDF / XFDF

前提是你 提交于 2019-12-24 01:18:14

问题


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:

  1. Does Adobe Reader have the concept of a checkbox or radio group when naming the input fields for the pdf form?
  2. Whether yes or no, how do I check the box?

Many thanks


回答1:


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:

<< /T (genderM) /V (ON) >>

The default value, as shown in the above image is 'Yes', which would mean I use:

<< /T (genderM) /V (Yes) >>

Hope that helps someone in future.

Cheers



来源:https://stackoverflow.com/questions/6508964/how-to-name-a-group-check-box-in-adobe-reader-when-wanting-to-fill-form-by-fdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!