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

Remove fields

Community Beginner ,
Feb 01, 2024 Feb 01, 2024

Copy link to clipboard

Copied

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

Views

278

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

yes

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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