How can I trigger the on focus action event or the javascript programmatically?
example code
- Code: Select all
Private Shared Sub fill()
Dim pdf As New Spire.Pdf.PdfDocument()
pdf.LoadFromFile("file.pdf")
Dim formWidget As PdfFormWidget = CType(pdf.Form, PdfFormWidget)
Dim field As PdfField = CType(formWidget.FieldsWidget.List(0), PdfField)
Dim textBoxField As PdfTextBoxFieldWidget = CType(field, PdfTextBoxFieldWidget)
textBoxField.Text = "Las Vegas"
pdf.SaveToFile("file.pdf")
pdf.Close()
End Sub
Attached file shows example of issue.
Thanks in advance