FieldType.Radio

Hi There,

found this code and tried to use it .Works fine except that it does not show captions. How to make them visible in front of the radio buttons?
//set items for a radio group
editor.Items = new System.String[] { “item0”, “item1”, “item2” };
//add a radio button field
editor.AddField(FieldType.Radio, “radio1”, 1, …);

thanks


This message was posted using Page2Forum from Aspose.Pdf.Kit for .NET and Java - Documentation

Hi Volker,


Thanks for using our products and sorry for the delayed repsonse.

In order to add text beside radio buttons, you may consider using CreateFreeText(…) method of PdfContentEditor class.

[C#]

PdfContentEditor editor = new
PdfContentEditor();<o:p></o:p>

editor.BindPdf("example.pdf");

editor.CreateFreeText(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 1);

editor.Save(“example_out.pdf”);