I need to "find and replace" text in a PDF file on OS X Yosemite.
It would be better if there was a "replace all" feature. How can I do this on OS X?
As Tom Gewecke mentioned in a comment, Adobe Acrobat can do this.
I was also able to do this with PDFpen, as also suggested by Tom Gewecke.
Both apps seem great. Since both of them are quite pricey, though, I would also like to share a way to do this with the free and open source software LibreOffice.
I suspect LibreOffice probably decodes and re-encodes the document. But in my case the new document looked precisely identical to the original (except for the edits, of course.)
Usually, you can actually get away with just replacing the string in the file contents. Make a copy of the PDF, open it in a pure text editor (textmate, atom, vim etc.) and search&replace.
which replaces all occurrences of "bla" with "blub". The conversion to and from ps can be done by
If the PDF is native and writable, you can open with preview,copy and paste all the contents into Word, then use the "find and replace all" feature in Word;
If the PDF is scanned, image-based, you can use online OCR tools, they can help to convert scanned PDFs into editable formats, such as Word, or others, then you will be able to find and replace texts in PDF.