How can I check the checkboxes in Aspose.PDF.Form


#1

Hi again,

In my PDF template I have named 2 checkboxes as -

1. ClientRegisteredForGSTYes
2. ClientRegisteredForGSTNo

Eariler I was passing the values as -

form.fill(“ClientRegisteredForGSTYes”,“True”)
form.fill(“ClientRegisteredForGSTNo”,“False”)

but it didnt work, and I changed my code to -

form.fill(“ClientRegisteredForGSTYes”,“chkItem1”)

But still the checkbox is not getting ticked.

Am i missing some code?

Please guide asap.

Thanks
Vikas


#2

Dear vika,

Thanks for considering Aspose.Pdf.Form.

Please check the export value of the checkBox which is defined when it is created.

Please read this wiki http://www.aspose.com/wiki/default.aspx/Aspose.Pdf.Form/HowToFillFieldWithAPI.html
about how to fill the checkBox.

Best regards.