I am trying to create pdf using Aspose.Pdf.Generator.Text with IsHtmlTagSupported enabled.
I've ran into a few issues while trying to do the following:
1. Assigning name to the html form field
eg: Text text1 = new Text("<input id='hello' type='text' name='helloworld'></input>");
When I examined the generated textfield in Adobe Acrobat, the name was autogenerated guid.
2. Although this worked in my WCF webservice, in Window Forms Application this produced a blank PDF.
eg: Text text2 = new Text("<input type='radio'></input>");
3. Combinations of the two issues above, I got System.ApplicationException: Non-unique field name when I tried to create two radio buttons with the same name.
eg: Text text3 = new Text("<input type='radio' name='testname'></input><input type='radio' name='testname'></input>");
I have also included a sample C# file I wrote using Window Forms Application.
I am using .net 3.5 and Aspose.Pdf 9.2.0.0