My first guess would be to find a MacOS PDF editing application that is either AppleScript-able, or experiment with using Automator. The alternative might be just cracking open the binary of the PDF file in LC and see what you find.