Free Support Forum - aspose.com

Problem with Checkbox in PDF

Hi

I am generating pdf using BindXml() method.

The XML i am using is:

Yes

No

With the above XMl there is only one checkbox generated whereas i expected two.

Moreover The generated checkbox is not positioned at text1 and it does not have any border.

Please help ASAP.

Thanks

Hi,

Thank you for considering Aspose.

I have modified your xml as the following:






Yes
No


<FormField FormFieldType='CheckBox' FormHeight='12' FormWidth='12' FieldName='aCheckBox1'
CheckBoxIsChecked="true" IsBordered="true" Left="30" Top="0" PositioningType="ParagraphRelative"
ReferenceParagraphID="text1">

<FormField FormFieldType='CheckBox' FormHeight='12' FormWidth='12' FieldName='aCheckBox2'
CheckBoxIsChecked="false" IsBordered="true" Left="30" Top="0" PositioningType="ParagraphRelative"
ReferenceParagraphID="text2">


Please refer to Introduction to Schema about how to write correct xml. Please also make sure each form field has a unique field name.