Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
23

Remove fields

Community Beginner ,
Feb 01, 2024 Feb 01, 2024

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?

TOPICS
Edit and convert PDFs , JavaScript , PDF , PDF forms
501
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2024 Feb 01, 2024

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


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 01, 2024 Feb 01, 2024

yes

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2024 Feb 01, 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024
LATEST

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines