Hi,
If I remove a page from a document, the fields in document terminal fields that are related to the page that was removed are still in the Terminal fields list of the document.
As far as I can tell those terminal fields are not related to anything, and should not stay with the document.
Is there a way to remove the unused terminal fields from the document and still keep the fields with the pages that are still part of the document?
Thanks
Harlan
Form fields not removed from document when page removed.
Moderator: Alex
-
- Posts: 85
- Joined: Fri Jan 24, 2020 3:37 am
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Form fields not removed from document when page removed.
Hi Harlan,
You need to do steps below if you want to remove PDF page with interactive fields from PDF document:
You need to do steps below if you want to remove PDF page with interactive fields from PDF document:
- Get interactive fields, which are located on PDF page, using Document.InteractiveForm.GetFieldsLocatedOnPage method.
- Delete interactive fields using PdfInteractiveFormField.Remove method.
- Delete PDF page.