Skip to main content
Participant
February 1, 2024
Question

Remove fields

  • February 1, 2024
  • 2 replies
  • 858 views

I have a few hundred PDFs that had some invalid fields generated.   For example a date is appearing on the PDF that shouldn't be there.  If it was just a couple documents, I would go into Edit  PDF, find the field and delete it.  The position of the field is constant for all PDF pages.   Is there a way via Action Wizard or Java to delete certain fields in a PDF?

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
February 2, 2024

To find out more: you must use the Thom Parker script in an Action to process hundreds of files automatically.

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
Community Expert
February 1, 2024

Is the unwanted field name always the same, or contain a common denominator?

Acrobate du PDF, InDesigner et Photoshopographe
Participant
February 1, 2024

yes

Thom Parker
Community Expert
Community Expert
February 1, 2024

Run this code in the console window

 

this.removeField("FieldName")

 

Where "FieldName" is the name of the field you want to remove.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often