Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

How can I delete all form fields from my document?

Question

How can I delete all form fields from my document?

Answer

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

QP.LoadFromFile("pdf_form.pdf");
TotalFormFields = QP.FormFieldCount()

While (TotalFormFields > 0)
{
  QP.DeleteFormField(TotalFormFields);
  TotalFormfields = TotalFormFields - 1;
}

QP.SaveToFile("no_form_fields.pdf");

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum