Foxit Quick PDF Library

Programmatically delete all form fields in a PDF

All form fields in a PDF can be deleted with the assistance of the DeleteFormField function in Foxit Quick PDF Library. Some JScript sample code that demonstrates how to do this is shown below:

TotalFormFields = DPL.FormFieldCount()

While (TotalFormFields > 0)
  TotalFormfields = TotalFormFields - 1;


This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.

Updated on May 16, 2022

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: