How to check a form for the presence of a field

Hello,

I have a situation where a user configured pdf form is being filled in. In some circumstances certain form fields may not be present in the pdf form. I need to be able to check for them before i try to access them. I tried a couple of methods, including checking for a null return from the pdfLoadedformFieldCollection, but this throws an exception. I could wrap the code block in a try and except, but i would rather see if there was a way to check for the existence.

Oh there is an Contains method on the Items property, however it does not look to take the field name, only a pdfField.

--Tim

1 Reply

PJ Pravin Joshua D Syncfusion Team May 4, 2010 11:50 AM UTC

Hi Timothy,

Thank you for using using Essential PDF.

The methods for checking the presence of form fields has been implemented in our library, recently. Could you please report the issue through Direct Trac Developer Support Systemhttps://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents so that we can provide you the necessary solution.

Please let us know if you have any questions.

Regards,
Pravin Joshua D

Loader.
Up arrow icon