tags:

views:

241

answers:

3

I'm using FDF to populate a PDF template. On my PDF template, I have a checkbox and radio field called c1 and r1 respectively. What's the syntax I should use in my FDF file to check or select the c1 and r1 field?

I tried things like

<</T(c1)/V(1)>>
<</T(c1)/V(checked)>>
<</T(c1)/V(on)>>
<</T(c1)/V(true)>>

But none of them work.

+1  A: 

I found the answer. To check, use

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

To turn off, use

<</T(c1)/V(Off)>>

I found the answer on this page: http://www.4dcodeexchange.net/fdfformbuilder.htm

Excerpt

Checkboxes come in 2 flavors grouped and individual. Individual checkboxes will usually have a value of "Yes" or "Off". Grouped checkboxes are different in that each checkbox will have its own value. If you have problems with your FDF, look here first.

John
"Yes" and "Off"Hah!
newslacker
What about FileNotFound?
Lucas Jones
A: 

Yes From JAVA ALSO we can pass value "Yes" to check the checkbox in pdf or fdf thanks.... Rachit Shah

Rachit Shah
A: 

HI all java fans, i have worked on a big fdf project recently and struggled a lot but i have learnt a lot of things related to fdf and pdf generation through java if any queries feel free to mail me at [email protected]

Well to check the check bos is to supply Yes as a parameter

Rachit Shah