XHtmlOptions AddForms Property. Whether form fields should be live. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Value Read Only Description
[C#] bool

[Visual Basic]
Boolean
false No Whether form fields should be live.

 

   

Notes
 

This property determines whether form fields in HTML are reproduced as form fields in the final PDF output.

Form fields in PDF do not work exactly the same as form fields in HTML so while the results will be similar they may not be identical.

 

   

Example
 

The following example shows the effect that this parameter has on HTML rendering.

[C#]
Doc theDoc = new Doc();
// Covert html form fields to the pdf form fields in the output file
theDoc.HtmlOptions.AddForms = true;
int id = theDoc.AddImageUrl("http://www.websupergoo.com/download.htm");
// Save the document
theDoc.Save(Server.MapPath("HtmlOptionsAddForms.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
' Covert html form fields to the pdf form fields in the output file
theDoc.HtmlOptions.AddForms = True
Dim id As Integer = theDoc.AddImageUrl("http://www.websupergoo.com/download.htm")
' Save the document
theDoc.Save(Server.MapPath("HtmlOptionsAddForms.pdf"))
theDoc.Clear()


HtmlOptionsAddForms.pdf