We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Radiobutton in Pdf


I am generating a pdf doc using BindXml() method.

I have to display radiobuttons on the doc.

I have my XML

as below:

<?xml version="1.0" encoding="UTF-8"?>

<n1:Pdf xmlns:n1="Aspose.Pdf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="Aspose.Pdf



<Table><Row><Cell><FormField FieldName="F1"><RadioButton></RadioButton></FormField></Cell></Row></Table></Header></Section>


The doc does not display the Pdf.

Pleas Help.



You can find an example of RadioButton at https://docs.aspose.com/pdf/net/working-with-forms/. We will try to make this feature more easy to use in the future version.

When testing this issue further we found some problem on positioning and displaying in header. We will try to fix the bug at this weekend or early next week.


Thanks for the quick reply.

I could now display the radiobuttons on the pdf doc.

Now i nead to keep the checkbox on the pdf doc.

But i am getting Compress error when i use the checkbox.

Following is the xml format i am using


Please tell me the xml format of checkbox.

Thanks in advance.

Here is a very simple XML for CheckBox.

<?xml version="1.0" encoding="utf-8"?>

<FormField FormFieldType="CheckBox" FieldName="ACheckBox"
FormWidth="80" FormHeight="20" />

The result pdf is also attached.

How can you disable the checkbox?




Please use this:

<?xml version="1.0" encoding="utf-8" ?>