Hi,
The HTML to PDF converter takes a "snapshot" of the rendering result as if it were doing a "screen capture". It capture the rendering result of the interactive elements but it does not retain the interactive feature. For example, it captures the textbox frames at where the textbox is rendered so it looks like a textbox, but the textbox itself does not exist in the PDF file. It is not possible to duplicate all the interactive feature of the HTML file in a PDF file because PDF only supports limited interactive features.
If you wish to retain the textbox fields, you must write additional code to create them. You can follow these steps:
1. Call ConvertHtml/ConvertUrl to convert the HTML to PDF. This steps produces the visual result, but it does not produce the textbox fields;
2. Using the HtmlToPdfResult object returned in step #1 to locate your textbox. For example, you can use something like this to locate your "field1":
Code: C#
HtmlElement field1 = result.HtmlDocument.GetElementById("field1");
3. Use the HtmlElement's Location and Size to find out the location (x, y, page index) and the size (width, height) of the textbox in the PDF file;
4. Use the PDF Creator interface to create a textbox based on the location/size information found on step 3. You can take a look of the sample and documentation for the PDF Creator interface to find more information about how to do this;
Hope this helps. Please feel free to let us know if you have any more question.
Thanks!