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

Find & Replace a set of string across multiple files

Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

I receive a set of PDFs every week that i need to update.

 

For each PDF i have 2 sets of strings that need to be found and replaced.

 

Set 1 :

A => 123

B => 456

C => 789

 

Set 2

A => 987

B => 654

C => 321

 

I could this manually but the issue is that I have new files coming in every week and the replacements are all the same, i have about 20 strings to replace per set and I would like to automate this as much as possible.

 

How can I perform this action without having to do this tedious one by one ?

 

Could JavaScript assist ? anything else ?

 

Thanks for your help, hoping to find the answers !

TOPICS
Edit and convert PDFs , How to , JavaScript , PDF

Views

195

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 ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

LATEST

JS can be used to overlay the new text over the old one (and even to redact the old text, if you need to have it completely gone), but that won't "reflow" the page's contents, so if the new text is longer than the old one, or if there's a background color behind it, the result won't look good, and it might even remove other text by accident.

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