Free Support Forum - aspose.com

Radiobutton in Pdf

Hi,

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

aspose.pdf.xsd">

<Section><Header>

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

</n1:Pdf>

The doc does not display the Pdf.

Pleas Help.

Thanks

Hi,

You can find an example of RadioButton at http://www.aspose.com/wiki/default.aspx/Aspose.Pdf/ManipulatingFormFields.html. 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.

Hi,

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

<CheckBox>

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"
CheckBoxIsChecked="true"
FormWidth="80" FormHeight="20" />

The result pdf is also attached.

How can you disable the checkbox?

Thanks!

Dave

Hi,

Please use this:

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

Thanks.