Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 8 today!

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");

© 2012 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum