Frequently Asked Question:
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");