Search For Specific Text in a PDF File

Hey @Rick_4,

Okay, extracting text from the PDF works as expected.

Unfortunately @CJK's AppleScriptObjC method produces garbled text that's really hard to work with, but fortunately there's a tool available with a switch that maintains the original document layout as much as possible.

Download the 64-bit Xpdf tools from here:

DO NOT TRY TO USE THE INSTRUCTIONS IN THE “INSTALL” FILE OF THE ARCHIVE.

Install the items from the bin64 folder in the archive to this folder:

/usr/local/bin/

In a Finder window G will open a field for you to paste the path and go there.

Install the items from the doc folder of the archive to:

/usr/local/share/man/man1/

Create the folders if you have to.

Once you've accomplished this we'll move forward.

-Chris

1 Like