You might be able to do a find and replace with https://github.com/pymupdf/PyMuPDF . I’m not an expert on PDFs, so I’m not sure if it can be done in a way that preserves all the important formatting, but if you feel comfortable DMing me the PDF (or one of similar complexity) I could try to write a script that replaces all instances of the target text in a way that preserves the rest of the document.
You might be able to do a find and replace with https://github.com/pymupdf/PyMuPDF . I’m not an expert on PDFs, so I’m not sure if it can be done in a way that preserves all the important formatting, but if you feel comfortable DMing me the PDF (or one of similar complexity) I could try to write a script that replaces all instances of the target text in a way that preserves the rest of the document.