When filling a PDF form. Is there any way to see if the form field exists prior to attempting to fill the field with text?
ie:
Dim form As PdfImportedForm = pdfReader1.Form
IF form.Fields("FirstNamePDF").exists = True) THEN
Dim ldField_FNAME As PdfImportedTextBoxField = TryCast(form.Fields("FirstNamePDFfield"), PdfImportedTextBoxField)
ldField_FNAME.Text = txtFNAME.Text
ELSE
do nothing
END IF
Notes: VB.net, componentpro PDF, filling a form
asked 9/26/2022 11:04:07 PM